Hi Zhen, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v6.1-rc6] [cannot apply to next-20221122] [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/Zhen-Lei/kallsyms-Add-self-test-facility/20221115-163650 patch link: https://lore.kernel.org/r/20221115083349.1662-1-thunder.leizhen%40huawei.com patch subject: [PATCH v9] kallsyms: Add self-test facility config: hexagon-randconfig-r013-20221120 compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project af8c49dc1ec44339d915d988ffe0f38da68ca0e7) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/2d938b2c6f7a6a515097ec18124ac23a6017ffaf git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Zhen-Lei/kallsyms-Add-self-test-facility/20221115-163650 git checkout 2d938b2c6f7a6a515097ec18124ac23a6017ffaf # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): >> kernel/kallsyms_selftest.c:281:2: error: call to undeclared function 'kallsyms_on_each_match_symbol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] kallsyms_on_each_match_symbol(match_symbol, stat.name, &stat); ^ kernel/kallsyms_selftest.c:281:2: note: did you mean 'kallsyms_on_each_symbol'? include/linux/kallsyms.h:70:5: note: 'kallsyms_on_each_symbol' declared here int kallsyms_on_each_symbol(int (*fn)(void *, const char *, struct module *, ^ kernel/kallsyms_selftest.c:331:3: error: call to undeclared function 'kallsyms_on_each_match_symbol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] kallsyms_on_each_match_symbol(match_symbol, test_items[i].name, stat); ^ kernel/kallsyms_selftest.c:381:3: error: call to undeclared function 'kallsyms_on_each_match_symbol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] kallsyms_on_each_match_symbol(match_symbol, namebuf, stat); ^ 3 errors generated. vim +/kallsyms_on_each_match_symbol +281 kernel/kallsyms_selftest.c 269 270 static void test_perf_kallsyms_on_each_match_symbol(void) 271 { 272 u64 t0, t1; 273 unsigned long flags; 274 struct test_stat stat; 275 276 memset(&stat, 0, sizeof(stat)); 277 stat.max = INT_MAX; 278 stat.name = stub_name; 279 local_irq_save(flags); 280 t0 = sched_clock(); > 281 kallsyms_on_each_match_symbol(match_symbol, stat.name, &stat); 282 t1 = sched_clock(); 283 local_irq_restore(flags); 284 pr_info("kallsyms_on_each_match_symbol() traverse all: %lld ns\n", t1 - t0); 285 } 286 -- 0-DAY CI Kernel Test Service https://01.org/lkp