tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: ec85c95b0c90a17413901b018e8ade7b9eae7cad commit: fecf694f2b4b583d7740d55f584411b3062afa7e [2620/2633] module: add printk formats to add module build ID to stacktraces config: riscv-randconfig-r015-20210512 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a0fed635fe1701470062495a6ffee1c608f3f1bc) 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 # install riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=fecf694f2b4b583d7740d55f584411b3062afa7e git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout fecf694f2b4b583d7740d55f584411b3062afa7e # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): kernel/kallsyms.c:310:71: error: too many arguments to function call, expected 5, have 6 return !!module_address_lookup(addr, symbolsize, offset, NULL, NULL, namebuf) || ~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~ include/linux/module.h:745:27: note: 'module_address_lookup' declared here static inline const char *module_address_lookup(unsigned long addr, ^ kernel/kallsyms.c:341:30: error: too many arguments to function call, expected 5, have 6 modname, modbuildid, namebuf); ^~~~~~~ include/linux/module.h:745:27: note: 'module_address_lookup' declared here static inline const char *module_address_lookup(unsigned long addr, ^ >> kernel/kallsyms.c:314:13: warning: no previous prototype for function 'kallsyms_lookup_buildid' [-Wmissing-prototypes] const char *kallsyms_lookup_buildid(unsigned long addr, unsigned long *symbolsize, ^ kernel/kallsyms.c:314:7: note: declare 'static' if the function is not intended to be used outside of this translation unit const char *kallsyms_lookup_buildid(unsigned long addr, unsigned long *symbolsize, ^ static kernel/kallsyms.c:570:12: warning: no previous prototype for function 'arch_get_kallsym' [-Wmissing-prototypes] int __weak arch_get_kallsym(unsigned int symnum, unsigned long *value, ^ kernel/kallsyms.c:570:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int __weak arch_get_kallsym(unsigned int symnum, unsigned long *value, ^ static 2 warnings and 2 errors generated. Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for LOCKDEP Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86) Selected by - LOCK_STAT && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT - DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT vim +/kallsyms_lookup_buildid +314 kernel/kallsyms.c 313 > 314 const char *kallsyms_lookup_buildid(unsigned long addr, unsigned long *symbolsize, 315 unsigned long *offset, char **modname, 316 const unsigned char **modbuildid, char *namebuf) 317 { 318 const char *ret; 319 320 namebuf[KSYM_NAME_LEN - 1] = 0; 321 namebuf[0] = 0; 322 323 if (is_ksym_addr(addr)) { 324 unsigned long pos; 325 326 pos = get_symbol_pos(addr, symbolsize, offset); 327 /* Grab name */ 328 kallsyms_expand_symbol(get_symbol_offset(pos), 329 namebuf, KSYM_NAME_LEN); 330 if (modname) 331 *modname = NULL; 332 if (modbuildid) 333 *modbuildid = NULL; 334 335 ret = namebuf; 336 goto found; 337 } 338 339 /* See if it's in a module or a BPF JITed image. */ 340 ret = module_address_lookup(addr, symbolsize, offset, 341 modname, modbuildid, namebuf); 342 if (!ret) 343 ret = bpf_address_lookup(addr, symbolsize, 344 offset, modname, namebuf); 345 346 if (!ret) 347 ret = ftrace_mod_address_lookup(addr, symbolsize, 348 offset, modname, namebuf); 349 350 found: 351 cleanup_symbol_name(namebuf); 352 return ret; 353 } 354 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org