Hay
Date
June 17, 2025, 3:39 p.m.

Environment
arm

make  -C /builds/linux/tools/lib/bpf OUTPUT=/home/tuxbuild/.cache/tuxmake/builds/1/build/kselftest/net/tools/build/libbpf/     \
make[4]: Entering directory '/builds/linux/tools/testing/selftests/mm'
In file included from hmm-tests.c:13:
hugetlb-read-hwpoison.c: In function 'seek_read_hugepage_filemap':
hugetlb-read-hwpoison.c:16:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'off_t' {aka 'long long int'} [-Wformat=]
   16 | #define PREFIX " ... "
      |                ^~~~~~~
hugetlb-read-hwpoison.c:78:16: note: in expansion of macro 'PREFIX'
   78 |         printf(PREFIX PREFIX "init val=%u with offset=0x%lx\n", val, offset);
      |                ^~~~~~
hugetlb-read-hwpoison.c:78:59: note: format string is defined here
   78 |         printf(PREFIX PREFIX "init val=%u with offset=0x%lx\n", val, offset);
      |                                                         ~~^
      |                                                           |
      |                                                           long unsigned int
      |                                                         %llx


make  -C /builds/linux/tools/lib/bpf OUTPUT=/home/tuxbuild/.cache/tuxmake/builds/1/build/kselftest/net/tools/build/libbpf/     \
make[4]: Entering directory '/builds/linux/tools/testing/selftests/mm'
In file included from hmm-tests.c:13:
hugetlb-read-hwpoison.c: In function 'seek_read_hugepage_filemap':
hugetlb-read-hwpoison.c:16:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'off_t' {aka 'long long int'} [-Wformat=]
   16 | #define PREFIX " ... "
      |                ^~~~~~~
hugetlb-read-hwpoison.c:78:16: note: in expansion of macro 'PREFIX'
   78 |         printf(PREFIX PREFIX "init val=%u with offset=0x%lx\n", val, offset);
      |                ^~~~~~
hugetlb-read-hwpoison.c:78:59: note: format string is defined here
   78 |         printf(PREFIX PREFIX "init val=%u with offset=0x%lx\n", val, offset);
      |                                                         ~~^
      |                                                           |
      |                                                           long unsigned int
      |                                                         %llx