Re: [PATCH v2] module: Extend module_blacklist parameter to built-in modules
From: kernel test robot
Date: Wed Aug 05 2026 - 10:23:18 EST
Hi Aaron,
kernel test robot noticed the following build errors:
[auto build test ERROR on soc/for-next]
[also build test ERROR on linus/master arnd-asm-generic/master v7.2-rc6 next-20260804]
[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/Aaron-Tomlin/module-Extend-module_blacklist-parameter-to-built-in-modules/20260805-123559
base: https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git for-next
patch link: https://lore.kernel.org/r/20260622140259.2974-1-atomlin%40atomlin.com
patch subject: [PATCH v2] module: Extend module_blacklist parameter to built-in modules
config: alpha-allnoconfig (https://download.01.org/0day-ci/archive/20260805/202608052234.AvJ5oSvK-lkp@xxxxxxxxx/config)
compiler: alpha-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260805/202608052234.AvJ5oSvK-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202608052234.AvJ5oSvK-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
init/main.c: In function 'do_one_initcall':
>> init/main.c:1364:24: error: implicit declaration of function 'module_is_blacklisted' [-Wimplicit-function-declaration]
1364 | if (modname && module_is_blacklisted(modname)) {
| ^~~~~~~~~~~~~~~~~~~~~
vim +/module_is_blacklisted +1364 init/main.c
1355
1356 int __init_or_module do_one_initcall(initcall_t fn)
1357 {
1358 int count = preempt_count();
1359 char msgbuf[64];
1360 const char *modname;
1361 int ret;
1362
1363 modname = initcall_get_modname(fn);
> 1364 if (modname && module_is_blacklisted(modname)) {
1365 pr_info("Skipping initcall for blacklisted built-in module %s\n",
1366 modname);
1367 return 0;
1368 }
1369
1370 if (initcall_blacklisted(fn))
1371 return -EPERM;
1372
1373 do_trace_initcall_start(fn);
1374 ret = fn();
1375 do_trace_initcall_finish(fn, ret);
1376
1377 msgbuf[0] = 0;
1378
1379 if (preempt_count() != count) {
1380 sprintf(msgbuf, "preemption imbalance ");
1381 preempt_count_set(count);
1382 }
1383 if (irqs_disabled()) {
1384 strlcat(msgbuf, "disabled interrupts ", sizeof(msgbuf));
1385 local_irq_enable();
1386 }
1387 WARN(msgbuf[0], "initcall %pS returned with %s\n", fn, msgbuf);
1388
1389 add_latent_entropy();
1390 return ret;
1391 }
1392
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki