tree: https://github.com/jimc/linux.git hf-5h head: 973cbca759843f96e28cf905d93c06305076f4fd commit: 998038ec632fe638bfe712840689720093c1e24e [13/22] dyndbg-API: specialize DYNDBG_CLASSMAP_(DEFINE|USE) config: m68k-allmodconfig compiler: m68k-linux-gcc (GCC) 12.1.0 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/jimc/linux/commit/998038ec632fe638bfe712840689720093c1e24e git remote add jimc https://github.com/jimc/linux.git git fetch --no-tags jimc hf-5h git checkout 998038ec632fe638bfe712840689720093c1e24e # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot Note: the jimc/hf-5h HEAD 973cbca759843f96e28cf905d93c06305076f4fd builds fine. It only hurts bisectability. All errors (new ones prefixed by >>): lib/dynamic_debug.c: In function '__ddebug_add_module': >> lib/dynamic_debug.c:1395:9: error: implicit declaration of function 'ddebug_sanity' [-Werror=implicit-function-declaration] 1395 | ddebug_sanity(di); | ^~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/ddebug_sanity +1395 lib/dynamic_debug.c 1351 1352 /* 1353 * Allocate a new ddebug_table for the given module 1354 * and add it to the global list. 1355 */ 1356 static int __ddebug_add_module(struct _ddebug_info *di, unsigned int base, 1357 const char *modname) 1358 { 1359 struct ddebug_table *dt; 1360 1361 v3pr_info("add-module: %s %d sites %d.%d\n", modname, di->num_descs, 1362 di->num_classes, di->num_class_refs); 1363 if (!di->num_descs) { 1364 v3pr_info(" skip %s\n", modname); 1365 return 0; 1366 } 1367 1368 dt = kzalloc(sizeof(*dt), GFP_KERNEL); 1369 if (dt == NULL) { 1370 pr_err("error adding module: %s\n", modname); 1371 return -ENOMEM; 1372 } 1373 /* 1374 * For built-in modules, name lives in .rodata and is 1375 * immortal. For loaded modules, name points at the name[] 1376 * member of struct module, which lives at least as long as 1377 * this struct ddebug_table. 1378 */ 1379 dt->mod_name = modname; 1380 dt->ddebugs = di->descs; 1381 dt->num_ddebugs = di->num_descs; 1382 1383 INIT_LIST_HEAD(&dt->link); 1384 1385 if (di->num_classes) 1386 ddebug_attach_module_classes(dt, di); 1387 1388 mutex_lock(&ddebug_lock); 1389 list_add_tail(&dt->link, &ddebug_tables); 1390 mutex_unlock(&ddebug_lock); 1391 1392 if (di->num_class_refs) 1393 ddebug_attach_client_module_classes(dt, di); 1394 > 1395 ddebug_sanity(di); 1396 1397 vpr_info("%3u debug prints in module %s\n", di->num_descs, modname); 1398 return 0; 1399 } 1400 -- 0-DAY CI Kernel Test Service https://01.org/lkp