* [PATCH] selftests/perf_events: use the ll64 types on powerpc64
@ 2026-11-03 15:55 Sasha Levin
2026-11-05 15:43 ` sashiko-bot
0 siblings, 1 reply; 2+ messages in thread
From: Sasha Levin @ 2026-11-03 15:55 UTC (permalink / raw)
To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
Namhyung Kim
Cc: Kyle Huey, Shuah Khan, linux-perf-users, linux-kselftest,
linux-kernel
On powerpc64 __u64 is an unsigned long unless __SANE_USERSPACE_TYPES__
is defined, so printing attr.config with %llx warns:
watermark_signal.c:85:58: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type '__u64' {aka 'long unsigned int'} [-Wformat=]
Define __SANE_USERSPACE_TYPES__, as other selftests do.
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
KernelCI's powerpc kselftest builds show this. The define makes the same
change on alpha and mips64 and none on the other architectures; the
x86_64 and 32-bit builds don't change.
tools/testing/selftests/perf_events/watermark_signal.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/perf_events/watermark_signal.c b/tools/testing/selftests/perf_events/watermark_signal.c
index a84709cabd8be..abff011f63161 100644
--- a/tools/testing/selftests/perf_events/watermark_signal.c
+++ b/tools/testing/selftests/perf_events/watermark_signal.c
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
#define _GNU_SOURCE
+#define __SANE_USERSPACE_TYPES__
#include <errno.h>
#include <fcntl.h>
--
2.53.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] selftests/perf_events: use the ll64 types on powerpc64
2026-11-03 15:55 [PATCH] selftests/perf_events: use the ll64 types on powerpc64 Sasha Levin
@ 2026-11-05 15:43 ` sashiko-bot
0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-11-05 15:43 UTC (permalink / raw)
To: Sasha Levin; +Cc: linux-perf-users
> On powerpc64 __u64 is an unsigned long unless __SANE_USERSPACE_TYPES__
> is defined, so printing attr.config with %llx warns:
>
> watermark_signal.c:85:58: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type '__u64' {aka 'long unsigned int'} [-Wformat=]
>
> Define __SANE_USERSPACE_TYPES__, as other selftests do.
>
> Signed-off-by: Sasha Levin <sashal@kernel.org>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261103155516.535193-1-sashal@kernel.org?part=1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-05 15:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-03 15:55 [PATCH] selftests/perf_events: use the ll64 types on powerpc64 Sasha Levin
2026-11-05 15:43 ` sashiko-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox