selftests/mm: fix build warnings on ppc64
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 21 May 2024 03:02:19 +0000 (13:02 +1000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 24 May 2024 18:55:06 +0000 (11:55 -0700)
commit1901472fa880e5706f90926cd85a268d2d16bf84
treec1ed6fe2cd5548b7d448a38201041377c8c79014
parentb1480ed230acf4f7f069a7f5e3ddda62bbf4ba97
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>
tools/testing/selftests/mm/gup_test.c
tools/testing/selftests/mm/uffd-common.h