summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/mm/uffd-common.h
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2024-05-21 05:02:19 +0200
committerAndrew Morton <akpm@linux-foundation.org>2024-05-24 20:55:06 +0200
commit1901472fa880e5706f90926cd85a268d2d16bf84 (patch)
treec1ed6fe2cd5548b7d448a38201041377c8c79014 /tools/testing/selftests/mm/uffd-common.h
parentarm64: patching: fix handling of execmem addresses (diff)
downloadlinux-1901472fa880e5706f90926cd85a268d2d16bf84.tar.xz
linux-1901472fa880e5706f90926cd85a268d2d16bf84.zip
selftests/mm: fix build warnings on ppc64
Fix warnings like: In file included from uffd-unit-tests.c:8: uffd-unit-tests.c: In function `uffd_poison_handle_fault': uffd-common.h:45:33: warning: format `%llu' expects argument of type `long long unsigned int', but argument 3 has type `__u64' {aka `long unsigned int'} [-Wformat=] By switching to unsigned long long for u64 for ppc64 builds. Link: https://lkml.kernel.org/r/20240521030219.57439-1-mpe@ellerman.id.au Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Cc: Shuah Khan <skhan@linuxfoundation.org> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--tools/testing/selftests/mm/uffd-common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/mm/uffd-common.h b/tools/testing/selftests/mm/uffd-common.h
index cc5629c3d2aa..a70ae10b5f62 100644
--- a/tools/testing/selftests/mm/uffd-common.h
+++ b/tools/testing/selftests/mm/uffd-common.h
@@ -8,6 +8,7 @@
#define __UFFD_COMMON_H__
#define _GNU_SOURCE
+#define __SANE_USERSPACE_TYPES__ // Use ll64
#include <stdio.h>
#include <errno.h>
#include <unistd.h>