mirror of
https://abf.rosa.ru/djam/kernel-6.7-xanmod.git
synced 2025-02-24 17:42:49 +00:00
Fixed the build of 32-bit perf with zstd enabled
This commit is contained in:
parent
472a448250
commit
bb5c559aad
2 changed files with 37 additions and 0 deletions
|
@ -188,6 +188,7 @@ Patch109: fs-aufs.patch
|
|||
|
||||
# Other patches
|
||||
Patch110: objtool-sync-check.sh-set-the-exit-code-explicitly.patch
|
||||
Patch111: perf-zstd-use-zu-to-print-size_t-values.patch
|
||||
####################################################################
|
||||
|
||||
Autoreqprov: no
|
||||
|
|
36
perf-zstd-use-zu-to-print-size_t-values.patch
Normal file
36
perf-zstd-use-zu-to-print-size_t-values.patch
Normal file
|
@ -0,0 +1,36 @@
|
|||
From bf7cb8e53df3e47636b6394d901c2c80ee74a674 Mon Sep 17 00:00:00 2001
|
||||
From: Evgenii Shatokhin <eshatokhin@virtuozzo.com>
|
||||
Date: Tue, 24 Mar 2020 15:38:40 +0300
|
||||
Subject: [PATCH] perf,zstd: use %zu to print size_t values
|
||||
|
||||
Otherwise the build of a 32-bit kernel complains as follows:
|
||||
|
||||
In file included from util/session.c:17:0:
|
||||
util/session.c: In function 'perf_session__process_compressed_event':
|
||||
util/session.c:91:11: error: format '%ld' expects argument of type
|
||||
'long int', but argument 4 has type 'size_t {aka unsigned int}' [-Werror=format=]
|
||||
pr_debug("decomp (B): %ld to %ld\n", src_size, decomp_size);
|
||||
|
||||
...and fails.
|
||||
|
||||
Signed-off-by: Evgenii Shatokhin <eshatokhin@virtuozzo.com>
|
||||
---
|
||||
tools/perf/util/session.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c
|
||||
index d0d7d25b23e3..55c3d2fefd41 100644
|
||||
--- a/tools/perf/util/session.c
|
||||
+++ b/tools/perf/util/session.c
|
||||
@@ -88,7 +88,7 @@ static int perf_session__process_compressed_event(struct perf_session *session,
|
||||
session->decomp_last = decomp;
|
||||
}
|
||||
|
||||
- pr_debug("decomp (B): %ld to %ld\n", src_size, decomp_size);
|
||||
+ pr_debug("decomp (B): %zu to %zu\n", src_size, decomp_size);
|
||||
|
||||
return 0;
|
||||
}
|
||||
--
|
||||
2.24.0
|
||||
|
Loading…
Add table
Reference in a new issue