[chenxing:mstar_v6_5_reorder 537/700] drivers/misc/dt-dummy-irq.c:67:25: error: 'msc313_fcie_dt_ids' undeclared here (not in a function)

kernel test robot <[email protected]> Tue, 04 Aug 2026 12:32:33 +0800
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://github.com/linux-chenxing/linux.git mstar_v6_5_reorder
head:   1a5c60e65ea399670a5384b869c4958338af2799
commit: 5ffe59ecd11b8ae1f1acd2e5b03e758913e65aea [537/700] Create a dummy irq driver
config: nios2-allmodconfig (https://download.01.org/0day-ci/archive/20260804/[email protected]/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260804/[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 >>):

   In file included from drivers/misc/dt-dummy-irq.c:9:
>> drivers/misc/dt-dummy-irq.c:67:25: error: 'msc313_fcie_dt_ids' undeclared here (not in a function)
      67 | MODULE_DEVICE_TABLE(of, msc313_fcie_dt_ids);
         |                         ^~~~~~~~~~~~~~~~~~
   include/linux/module.h:244:15: note: in definition of macro 'MODULE_DEVICE_TABLE'
     244 | extern typeof(name) __mod_##type##__##name##_device_table               \
         |               ^~~~
>> include/linux/module.h:244:21: error: '__mod_of__msc313_fcie_dt_ids_device_table' aliased to undefined symbol 'msc313_fcie_dt_ids'
     244 | extern typeof(name) __mod_##type##__##name##_device_table               \
         |                     ^~~~~~
   drivers/misc/dt-dummy-irq.c:67:1: note: in expansion of macro 'MODULE_DEVICE_TABLE'
      67 | MODULE_DEVICE_TABLE(of, msc313_fcie_dt_ids);
         | ^~~~~~~~~~~~~~~~~~~


vim +/msc313_fcie_dt_ids +67 drivers/misc/dt-dummy-irq.c

    62	
    63	static const struct of_device_id dummy_dt_ids[] = {
    64		{ .compatible = "dummy-irq" },
    65		{},
    66	};
  > 67	MODULE_DEVICE_TABLE(of, msc313_fcie_dt_ids);
    68	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki