Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: cachestat: Fix build warnings on ppc64

Fix warnings like:
test_cachestat.c: In function ‘print_cachestat’:
test_cachestat.c:30:38: warning: format ‘%llu’ expects argument of
type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka
‘long unsigned int’} [-Wformat=]

By switching to unsigned long long for u64 for ppc64 builds.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Michael Ellerman and committed by
Shuah Khan
bc4d5f5d 23a4b108

+1
+1
tools/testing/selftests/cachestat/test_cachestat.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 2 #define _GNU_SOURCE 3 + #define __SANE_USERSPACE_TYPES__ // Use ll64 3 4 4 5 #include <stdio.h> 5 6 #include <stdbool.h>