Skip to content

Commit 84b6df4

Browse files
mpeshuahkh
authored andcommitted
selftests/openat2: Fix build warnings on ppc64
Fix warnings like: openat2_test.c: In function ‘test_openat2_flags’: openat2_test.c:303:73: warning: format ‘%llX’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘__u64’ {aka ‘long unsigned int’} [-Wformat=] By switching to unsigned long long for u64 for ppc64 builds. Signed-off-by: Michael Ellerman <[email protected]> Reviewed-by: Muhammad Usama Anjum <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent bc4d5f5 commit 84b6df4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/testing/selftests/openat2/openat2_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
#define _GNU_SOURCE
8+
#define __SANE_USERSPACE_TYPES__ // Use ll64
89
#include <fcntl.h>
910
#include <sched.h>
1011
#include <sys/stat.h>

0 commit comments

Comments
 (0)