[chenxing:mstar_v6_5_reorder 543/700] drivers/rtc/rtc-ssd20xd-rtcpwc.c:466:25: error: 'ms_rtc_of_match_table' undeclared here (not in a function); did you mean 'ssd20xd_rtcpwc_of_match_table'?

kernel test robot <[email protected]> Tue, 04 Aug 2026 17:17:03 +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: 5aec260a6a86a28889118148b047111b7075e183 [543/700] rtc: mstar: ssd20xd rtcpwc
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/rtc/rtc-ssd20xd-rtcpwc.c:8:
>> drivers/rtc/rtc-ssd20xd-rtcpwc.c:466:25: error: 'ms_rtc_of_match_table' undeclared here (not in a function); did you mean 'ssd20xd_rtcpwc_of_match_table'?
     466 | MODULE_DEVICE_TABLE(of, ms_rtc_of_match_table);
         |                         ^~~~~~~~~~~~~~~~~~~~~
   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__ms_rtc_of_match_table_device_table' aliased to undefined symbol 'ms_rtc_of_match_table'
     244 | extern typeof(name) __mod_##type##__##name##_device_table               \
         |                     ^~~~~~
   drivers/rtc/rtc-ssd20xd-rtcpwc.c:466:1: note: in expansion of macro 'MODULE_DEVICE_TABLE'
     466 | MODULE_DEVICE_TABLE(of, ms_rtc_of_match_table);
         | ^~~~~~~~~~~~~~~~~~~


vim +466 drivers/rtc/rtc-ssd20xd-rtcpwc.c

   461	
   462	static const struct of_device_id ssd20xd_rtcpwc_of_match_table[] = {
   463		{ .compatible = "sstar,ssd20xd-rtcpwc" },
   464		{ }
   465	};
 > 466	MODULE_DEVICE_TABLE(of, ms_rtc_of_match_table);
   467	

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