Skip to contentSkip to conversation

audit.h:354:42: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type '__u64' {aka 'long unsigned int'}

PATCH kernel test robot 1 participant 1 message Apr 2

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw

::::::
:::::: Manual check reason: "low confidence bisect report" ::::::

BCC: [email protected]
CC: [email protected]
TO: "Mickaël Salaün" <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mic/linux.git next
head:   e64b5bb393de35f8a63351bf96f8e4bb1975f5cc
commit: 608d0288d7b32882578cf4d686ab64873c9a1a52 [4/19] selftests/landlock: Skip stale records in audit_match_record()

:::::: branch date: 5 hours ago
:::::: commit date: 5 hours ago
config: powerpc64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260402/[email protected]/config)
compiler: powerpc64-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260402/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/r/[email protected]/

All warnings (new ones prefixed by >>):

In file included from fs_test.c:44:
audit.h: In function 'matches_log_domain_deallocated':

>> audit.h:354:42: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type '__u64' {aka 'long unsigned int'} [-Wformat=]
     354 |                                          log_template_with_id,
         |                                          ^~~~~~~~~~~~~~~~~~~~
     355 |                                          expected_domain_id, num_denials);
         |                                          ~~~~~~~~~~~~~~~~~~
         |                                          |
         |                                          __u64 {aka long unsigned int}

/usr/lib/gcc-cross/powerpc64-linux-gnu/14/../../../../powerpc64-linux-gnu/bin/ld: cannot find -lcap: No such file or directory
collect2: error: ld returned 1 exit status
--
In file included from audit_test.c:21:
audit.h: In function 'matches_log_domain_deallocated':

>> audit.h:354:42: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type '__u64' {aka 'long unsigned int'} [-Wformat=]
     354 |                                          log_template_with_id,
         |                                          ^~~~~~~~~~~~~~~~~~~~
     355 |                                          expected_domain_id, num_denials);
         |                                          ~~~~~~~~~~~~~~~~~~
         |                                          |
         |                                          __u64 {aka long unsigned int}
   In file included from common.h:20,
                    from audit_test.c:22:
   audit_test.c: In function 'audit_layers':
   tools/testing/selftests/../../../tools/testing/selftests/kselftest_harness.h:116:40: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 6 has type '__u64' {aka 'long unsigned int'} [-Wformat=]
     116 |                 fprintf(TH_LOG_STREAM, "# %s:%d:%s:" fmt "\n", \
         |                                        ^~~~~~~~~~~~~
   tools/testing/selftests/../../../tools/testing/selftests/kselftest_harness.h:111:17: note: in expansion of macro '__TH_LOG'
     111 |                 __TH_LOG(fmt, ##__VA_ARGS__); \
         |                 ^~~~~~~~
   audit_test.c:155:25: note: in expansion of macro 'TH_LOG'
     155 |                         TH_LOG("Failed to match domain %llx (#%d)",
         |                         ^~~~~~

/usr/lib/gcc-cross/powerpc64-linux-gnu/14/../../../../powerpc64-linux-gnu/bin/ld: cannot find -lcap: No such file or directory
collect2: error: ld returned 1 exit status
--
In file included from net_test.c:23:
audit.h: In function 'matches_log_domain_deallocated':

>> audit.h:354:42: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type '__u64' {aka 'long unsigned int'} [-Wformat=]
     354 |                                          log_template_with_id,
         |                                          ^~~~~~~~~~~~~~~~~~~~
     355 |                                          expected_domain_id, num_denials);
         |                                          ~~~~~~~~~~~~~~~~~~
         |                                          |
         |                                          __u64 {aka long unsigned int}
   In file included from common.h:20,
                    from net_test.c:24:
   net_test.c: In function 'mini_network_access_rights':
   tools/testing/selftests/../../../tools/testing/selftests/kselftest_harness.h:116:40: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 6 has type '__u64' {aka 'long unsigned int'} [-Wformat=]
     116 |                 fprintf(TH_LOG_STREAM, "# %s:%d:%s:" fmt "\n", \
         |                                        ^~~~~~~~~~~~~
   tools/testing/selftests/../../../tools/testing/selftests/kselftest_harness.h:111:17: note: in expansion of macro '__TH_LOG'
     111 |                 __TH_LOG(fmt, ##__VA_ARGS__); \
         |                 ^~~~~~~~
   net_test.c:1358:25: note: in expansion of macro 'TH_LOG'
    1358 |                         TH_LOG("Failed to add rule with access 0x%llx: %s",
         |                         ^~~~~~

/usr/lib/gcc-cross/powerpc64-linux-gnu/14/../../../../powerpc64-linux-gnu/bin/ld: cannot find -lcap: No such file or directory
collect2: error: ld returned 1 exit status

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki