Skip to contentSkip to conversation

include/linux/module.h:248:17: error: '__mod_device_table__kmod_pinctrl_amlogic_a4__of__aml_pctl_dt_match' aliased to undefined symbol 'aml_pctl_dt_match'

PATCH kernel test robot 1 participant 1 message Jul 21, 2025

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/legion/linux.git fix-modules-builtin-modinfo
head:   23cf9476592e737075728877cf6437c4042a9051
commit: 23cf9476592e737075728877cf6437c4042a9051 [7/7] modpost: Create modalias for builtin modules
config: arm64-defconfig (https://download.01.org/0day-ci/archive/20250722/[email protected]/config)
compiler: aarch64-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250722/[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/pinctrl/meson/pinctrl-amlogic-a4.c:11:

>> drivers/pinctrl/meson/pinctrl-amlogic-a4.c:1026:25: error: 'aml_pctl_dt_match' undeclared here (not in a function); did you mean 'aml_pctl_of_match'?
    1026 | MODULE_DEVICE_TABLE(of, aml_pctl_dt_match);
         |                         ^~~~~~~~~~~~~~~~~
   include/linux/module.h:256:15: note: in definition of macro 'MODULE_DEVICE_TABLE'
     256 | static typeof(name) __mod_device_table(type, name)                      \
         |               ^~~~
   In file included from <command-line>:
>> include/linux/module.h:248:17: error: '__mod_device_table__kmod_pinctrl_amlogic_a4__of__aml_pctl_dt_match' aliased to undefined symbol 'aml_pctl_dt_match'
     248 |         __PASTE(__mod_device_table__,   \
         |                 ^~~~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:83:23: note: in definition of macro '___PASTE'
      83 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/module.h:248:9: note: in expansion of macro '__PASTE'
     248 |         __PASTE(__mod_device_table__,   \
         |         ^~~~~~~
   include/linux/module.h:256:21: note: in expansion of macro '__mod_device_table'
     256 | static typeof(name) __mod_device_table(type, name)                      \
         |                     ^~~~~~~~~~~~~~~~~~
   drivers/pinctrl/meson/pinctrl-amlogic-a4.c:1026:1: note: in expansion of macro 'MODULE_DEVICE_TABLE'
    1026 | MODULE_DEVICE_TABLE(of, aml_pctl_dt_match);
         | ^~~~~~~~~~~~~~~~~~~

vim +248 include/linux/module.h

^1da177e4c3f415 Linus Torvalds 2005-04-16  245  
51faf81392f4303 Alexey Gladkov 2025-04-22  246  /* Format: __mod_device_table__kmod_<modname>__<type>__<name> */
51faf81392f4303 Alexey Gladkov 2025-04-22  247  #define __mod_device_table(type, name)	\
51faf81392f4303 Alexey Gladkov 2025-04-22 @248  	__PASTE(__mod_device_table__,	\
51faf81392f4303 Alexey Gladkov 2025-04-22  249  	__PASTE(__KBUILD_MODNAME,	\
51faf81392f4303 Alexey Gladkov 2025-04-22  250  	__PASTE(__,			\
51faf81392f4303 Alexey Gladkov 2025-04-22  251  	__PASTE(type,			\
51faf81392f4303 Alexey Gladkov 2025-04-22  252  	__PASTE(__, name)))))

51faf81392f4303 Alexey Gladkov 2025-04-22 253

:::::: The code at line 248 was first introduced by commit
:::::: 51faf81392f4303d7c750afd163c018f5fe5f030 modpost: Add modname to mod_device_table alias

:::::: TO: Alexey Gladkov <[email protected]>
:::::: CC: Alexey Gladkov <[email protected]>

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