linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* tools/testing/selftests/../../../tools/testing/selftests/kselftest_harness.h:107:40: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 6 has type '__u64' {aka 'long unsigned int'}
@ 2026-02-14  6:07 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-02-14  6:07 UTC (permalink / raw)
  To: Bala-Vignesh-Reddy
  Cc: oe-kbuild-all, linux-kernel, Andrew Morton,
	Linux Memory Management List, Wei Yang

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   770aaedb461a055f79b971d538678942b6607894
commit: e6fbd1759c9ece5044d3470f30a5e2166dc9de89 selftests: complete kselftest include centralization
date:   3 months ago
config: powerpc64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260214/202602140755.vIpuPels-lkp@intel.com/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/20260214/202602140755.vIpuPels-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202602140755.vIpuPels-lkp@intel.com/

All warnings (new ones prefixed by >>):

   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:107:40: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 6 has type '__u64' {aka 'long unsigned int'} [-Wformat=]
     107 |                 fprintf(TH_LOG_STREAM, "# %s:%d:%s:" fmt "\n", \
         |                                        ^~~~~~~~~~~~~
   tools/testing/selftests/../../../tools/testing/selftests/kselftest_harness.h:102:17: note: in expansion of macro '__TH_LOG'
     102 |                 __TH_LOG(fmt, ##__VA_ARGS__); \
         |                 ^~~~~~~~
   audit_test.c:152:25: note: in expansion of macro 'TH_LOG'
     152 |                         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 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:107:40: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 6 has type '__u64' {aka 'long unsigned int'} [-Wformat=]
     107 |                 fprintf(TH_LOG_STREAM, "# %s:%d:%s:" fmt "\n", \
         |                                        ^~~~~~~~~~~~~
   tools/testing/selftests/../../../tools/testing/selftests/kselftest_harness.h:102:17: note: in expansion of macro '__TH_LOG'
     102 |                 __TH_LOG(fmt, ##__VA_ARGS__); \
         |                 ^~~~~~~~
   net_test.c:1332:25: note: in expansion of macro 'TH_LOG'
    1332 |                         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


vim +107 tools/testing/selftests/../../../tools/testing/selftests/kselftest_harness.h

1256a525573120 tools/testing/selftests/kselftest_harness.h    Mickaël Salaün 2017-05-26  104  
1256a525573120 tools/testing/selftests/kselftest_harness.h    Mickaël Salaün 2017-05-26  105  /* Unconditional logger for internal use. */
1256a525573120 tools/testing/selftests/kselftest_harness.h    Mickaël Salaün 2017-05-26  106  #define __TH_LOG(fmt, ...) \
e80068be21824e tools/testing/selftests/kselftest_harness.h    Kees Cook      2020-06-22 @107  		fprintf(TH_LOG_STREAM, "# %s:%d:%s:" fmt "\n", \
1256a525573120 tools/testing/selftests/kselftest_harness.h    Mickaël Salaün 2017-05-26  108  			__FILE__, __LINE__, _metadata->name, ##__VA_ARGS__)
c99ee51a9d9716 tools/testing/selftests/seccomp/test_harness.h Kees Cook      2015-06-16  109  

:::::: The code at line 107 was first introduced by commit
:::::: e80068be21824e4d2726eeea41cac6178d212415 selftests/harness: Switch to TAP output

:::::: TO: Kees Cook <keescook@chromium.org>
:::::: CC: Shuah Khan <skhan@linuxfoundation.org>

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-02-14  6:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-14  6:07 tools/testing/selftests/../../../tools/testing/selftests/kselftest_harness.h:107:40: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 6 has type '__u64' {aka 'long unsigned int'} kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox