Hi Sergio,
kernel test robot noticed the following build warnings:
[auto build test WARNING on linus/master] [also build test WARNING on v6.6 next-20231107] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Sergio-Gonz-lez-Collado/Kunit... base: linus/master patch link: https://lore.kernel.org/r/20231105184010.49194-1-sergio.collado%40gmail.com patch subject: [PATCH] Kunit to check the longest symbol length config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20231108/202311080319.fCEp5dTC-lkp@i...) compiler: sparc64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231108/202311080319.fCEp5dTC-lkp@i...)
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/202311080319.fCEp5dTC-lkp@intel.com/
All warnings (new ones prefixed by >>):
lib/longest_symbol_kunit.c:16:18: warning: no previous prototype for 'snnnng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nnng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nnnng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nnng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nnnnng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nnng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nnnng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nnng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nng1h2i3j4k5l6m7ng1h2i3j4k5l6m7n' [-Wmissing-prototypes]
16 | #define DI(name) s##name##name | ^ lib/longest_symbol_kunit.c:17:19: note: in expansion of macro 'DI' 17 | #define DDI(name) DI(n##name##name) | ^~ lib/longest_symbol_kunit.c:18:20: note: in expansion of macro 'DDI' 18 | #define DDDI(name) DDI(n##name##name) | ^~~ lib/longest_symbol_kunit.c:19:21: note: in expansion of macro 'DDDI' 19 | #define DDDDI(name) DDDI(n##name##name) | ^~~~ lib/longest_symbol_kunit.c:20:22: note: in expansion of macro 'DDDDI' 20 | #define DDDDDI(name) DDDDI(n##name##name) | ^~~~~ lib/longest_symbol_kunit.c:25:27: note: in expansion of macro 'DDDDDI' 25 | #define LONGEST_SYM_NAME DDDDDI(g1h2i3j4k5l6m7n) | ^~~~~~ lib/longest_symbol_kunit.c:33:14: note: in expansion of macro 'LONGEST_SYM_NAME' 33 | noinline int LONGEST_SYM_NAME(void) | ^~~~~~~~~~~~~~~~ In file included from <command-line>: lib/longest_symbol_kunit.c:16:18: warning: no previous prototype for 'snnnng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nnng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nnnng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nnng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nnnnng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nnng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nnnng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nnng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nng1h2i3j4k5l6m7ng1h2i3j4k5l6m7ne' [-Wmissing-prototypes] 16 | #define DI(name) s##name##name | ^ include/linux/compiler_types.h:83:23: note: in definition of macro '___PASTE' 83 | #define ___PASTE(a,b) a##b | ^ lib/longest_symbol_kunit.c:22:21: note: in expansion of macro '__PASTE' 22 | #define PLUS1(name) __PASTE(name, e) | ^~~~~~~ lib/longest_symbol_kunit.c:28:32: note: in expansion of macro 'PLUS1' 28 | #define LONGEST_SYM_NAME_PLUS1 PLUS1(LONGEST_SYM_NAME) | ^~~~~ lib/longest_symbol_kunit.c:17:19: note: in expansion of macro 'DI' 17 | #define DDI(name) DI(n##name##name) | ^~ lib/longest_symbol_kunit.c:18:20: note: in expansion of macro 'DDI' 18 | #define DDDI(name) DDI(n##name##name) | ^~~ lib/longest_symbol_kunit.c:19:21: note: in expansion of macro 'DDDI' 19 | #define DDDDI(name) DDDI(n##name##name) | ^~~~ lib/longest_symbol_kunit.c:20:22: note: in expansion of macro 'DDDDI' 20 | #define DDDDDI(name) DDDDI(n##name##name) | ^~~~~ lib/longest_symbol_kunit.c:25:27: note: in expansion of macro 'DDDDDI' 25 | #define LONGEST_SYM_NAME DDDDDI(g1h2i3j4k5l6m7n) | ^~~~~~ lib/longest_symbol_kunit.c:28:38: note: in expansion of macro 'LONGEST_SYM_NAME' 28 | #define LONGEST_SYM_NAME_PLUS1 PLUS1(LONGEST_SYM_NAME) | ^~~~~~~~~~~~~~~~ lib/longest_symbol_kunit.c:38:14: note: in expansion of macro 'LONGEST_SYM_NAME_PLUS1' 38 | noinline int LONGEST_SYM_NAME_PLUS1(void) | ^~~~~~~~~~~~~~~~~~~~~~
vim +/snnnng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nnng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nnnng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nnng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nnnnng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nnng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nnnng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nnng1h2i3j4k5l6m7ng1h2i3j4k5l6m7nng1h2i3j4k5l6m7ng1h2i3j4k5l6m7n +16 lib/longest_symbol_kunit.c
15
16 #define DI(name) s##name##name
17 #define DDI(name) DI(n##name##name) 18 #define DDDI(name) DDI(n##name##name) 19 #define DDDDI(name) DDDI(n##name##name) 20 #define DDDDDI(name) DDDDI(n##name##name) 21