Re: [PATCH v2] module: Extend module_blacklist parameter to built-in modules

kernel test robot <[email protected]>
Newsgroups org.kernel.vger.linux-modules,dev.linux.lists.llvm,dev.linux.lists.oe-kbuild-all,org.kernel.vger.linux-arch,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
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-20260805]
[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: powerpc64-randconfig-002-20260806 (https://download.01.org/0day-ci/archive/20260806/[email protected]/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260806/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

>> init/main.c:1364:17: error: call to undeclared function 'module_is_blacklisted'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1364 |         if (modname && module_is_blacklisted(modname)) {
         |                        ^
   1 error generated.


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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.