* next: perf: 32-bit: bench/sched-seccomp-notify.c:139:24: error: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'uint64_t'
@ 2023-07-03 7:25 Naresh Kamboju
2023-07-03 19:16 ` Kees Cook
0 siblings, 1 reply; 2+ messages in thread
From: Naresh Kamboju @ 2023-07-03 7:25 UTC (permalink / raw)
To: open list, linux-perf-users, bpf
Cc: Andrei Vagin, Peter Zijlstra (Intel), Kees Cook,
Arnaldo Carvalho de Melo, Arnd Bergmann
Following build regressions noticed on Linux next-20230703.
Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
Regressions found on i386:
- build/gcc-11-lkftconfig-perf
Regressions found on arm:
- build/gcc-10-lkftconfig-perf
- build/gcc-11-lkftconfig-perf
Build error:
=======
bench/sched-seccomp-notify.c: In function 'bench_sched_seccomp_notify':
bench/sched-seccomp-notify.c:139:24: error: format '%lu' expects
argument of type 'long unsigned int', but argument 2 has type
'uint64_t' {aka 'long long unsigned int'} [-Werror=format=]
139 | printf("# Executed %lu system calls\n\n",
| ~~^
| |
| long unsigned int
| %llu
140 | loops);
| ~~~~~
| |
| uint64_t {aka long long unsigned int}
cc1: all warnings being treated as errors
make[4]: *** [tools/build/Makefile.build:97:
/home/tuxbuild/.cache/tuxmake/builds/1/build/bench/sched-seccomp-notify.o]
Error 1
Links:
- https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230703/testrun/18069798/suite/build/test/gcc-10-lkftconfig-perf/history/
--
Linaro LKFT
https://lkft.linaro.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: next: perf: 32-bit: bench/sched-seccomp-notify.c:139:24: error: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'uint64_t'
2023-07-03 7:25 next: perf: 32-bit: bench/sched-seccomp-notify.c:139:24: error: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'uint64_t' Naresh Kamboju
@ 2023-07-03 19:16 ` Kees Cook
0 siblings, 0 replies; 2+ messages in thread
From: Kees Cook @ 2023-07-03 19:16 UTC (permalink / raw)
To: Naresh Kamboju
Cc: open list, linux-perf-users, bpf, Andrei Vagin,
Peter Zijlstra (Intel), Arnaldo Carvalho de Melo, Arnd Bergmann
On Mon, Jul 03, 2023 at 12:55:59PM +0530, Naresh Kamboju wrote:
> Following build regressions noticed on Linux next-20230703.
>
> Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
>
> Regressions found on i386:
>
> - build/gcc-11-lkftconfig-perf
>
> Regressions found on arm:
>
> - build/gcc-10-lkftconfig-perf
> - build/gcc-11-lkftconfig-perf
>
> Build error:
> =======
> bench/sched-seccomp-notify.c: In function 'bench_sched_seccomp_notify':
> bench/sched-seccomp-notify.c:139:24: error: format '%lu' expects
> argument of type 'long unsigned int', but argument 2 has type
> 'uint64_t' {aka 'long long unsigned int'} [-Werror=format=]
> 139 | printf("# Executed %lu system calls\n\n",
> | ~~^
> | |
> | long unsigned int
> | %llu
> 140 | loops);
> | ~~~~~
> | |
> | uint64_t {aka long long unsigned int}
> cc1: all warnings being treated as errors
> make[4]: *** [tools/build/Makefile.build:97:
> /home/tuxbuild/.cache/tuxmake/builds/1/build/bench/sched-seccomp-notify.o]
> Error 1
Thanks! I've updated the format string to use "%"PRIu64 now.
-Kees
>
> Links:
> - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230703/testrun/18069798/suite/build/test/gcc-10-lkftconfig-perf/history/
>
>
> --
> Linaro LKFT
> https://lkft.linaro.org
--
Kees Cook
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-03 19:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-03 7:25 next: perf: 32-bit: bench/sched-seccomp-notify.c:139:24: error: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'uint64_t' Naresh Kamboju
2023-07-03 19:16 ` Kees Cook
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).