diff options
author | Yang Jihong <[email protected]> | 2023-11-18 02:48:56 +0000 |
---|---|---|
committer | Namhyung Kim <[email protected]> | 2023-11-21 10:02:38 -0800 |
commit | a6dda77a752d918b35ef4a3f94e6b8c7d7ba4a73 (patch) | |
tree | a19eef4a09aca147dfda2fc94e492471b6478622 /scripts/generate_rust_analyzer.py | |
parent | 98b1cc82c4affc16f5598d4fa14b1858671b2263 (diff) |
perf kwork: Fix a build error on 32-bit
lkft reported a build error for 32-bit system:
builtin-kwork.c: In function 'top_print_work':
builtin-kwork.c:1646:28: error: format '%ld' expects argument of
type 'long int', but argument 3 has type 'u64' {aka 'long long
unsigned int'} [-Werror=format=]
1646 | ret += printf(" %*ld ", PRINT_PID_WIDTH, work->id);
| ~~~^ ~~~~~~~~
| | |
| long int u64
{aka long long unsigned int}
| %*lld
cc1: all warnings being treated as errors
make[3]: *** [/builds/linux/tools/build/Makefile.build:106:
/home/tuxbuild/.cache/tuxmake/builds/1/build/builtin-kwork.o] Error 1
Fix it.
Fixes: 55c40e505234 ("perf kwork top: Introduce new top utility")
Reported-by: Linux Kernel Functional Testing <[email protected]>
Signed-off-by: Yang Jihong <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Cc: [email protected]
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions