selftests/overlayfs: Fix build error on ppc64
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 21 May 2024 02:26:16 +0000 (12:26 +1000)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 29 May 2024 18:26:40 +0000 (12:26 -0600)
commite8b8c5264d4ebd248f60a5cef077fe615806e7a0
tree7cb00d1afbb78c4cf8df51f4e5b3276f9a2db9a1
parent84b6df4c49a1cc2854a16937acd5fd3e6315d083
selftests/overlayfs: Fix build error on ppc64

Fix build error on ppc64:
  dev_in_maps.c: In function ‘get_file_dev_and_inode’:
  dev_in_maps.c:60:59: error: format ‘%llu’ expects argument of type
  ‘long long unsigned int *’, but argument 7 has type ‘__u64 *’ {aka ‘long
  unsigned int *’} [-Werror=format=]

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>
tools/testing/selftests/filesystems/overlayfs/dev_in_maps.c