tree: https://github.com/Freescale/linux-fslc pr/207 head: 542efcb517375f400651e87a35dc11948908afa9 commit: ccb83f789e7db74582b0726f75b5197fcdac7482 [8498/15819] MLK-23702-3: ASoC: rpmsg_wm8960: Add i2c interface config: c6x-randconfig-r024-20210110 (attached as .config) compiler: c6x-elf-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/Freescale/linux-fslc/commit/ccb83f789e7db74582b0726f75b5197fcdac7482 git remote add freescale-fslc https://github.com/Freescale/linux-fslc git fetch --no-tags freescale-fslc pr/207 git checkout ccb83f789e7db74582b0726f75b5197fcdac7482 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=c6x If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from sound/soc/codecs/rpmsg_wm8960.c:19: >> sound/soc/codecs/rpmsg_wm8960.c:1646:26: error: 'wm8960_i2c_id' undeclared here (not in a function); did you mean 'wm8960_rin'? 1646 | MODULE_DEVICE_TABLE(i2c, wm8960_i2c_id); | ^~~~~~~~~~~~~ include/linux/module.h:227:15: note: in definition of macro 'MODULE_DEVICE_TABLE' 227 | extern typeof(name) __mod_##type##__##name##_device_table \ | ^~~~ include/linux/module.h:128:42: error: redefinition of '__inittest' 128 | static inline initcall_t __maybe_unused __inittest(void) \ | ^~~~~~~~~~ include/linux/device.h:1903:1: note: in expansion of macro 'module_init' 1903 | module_init(__driver##_init); \ | ^~~~~~~~~~~ include/linux/i2c.h:911:2: note: in expansion of macro 'module_driver' 911 | module_driver(__i2c_driver, i2c_add_driver, \ | ^~~~~~~~~~~~~ sound/soc/codecs/rpmsg_wm8960.c:1664:1: note: in expansion of macro 'module_i2c_driver' 1664 | module_i2c_driver(rpmsg_wm8960_i2c_driver); | ^~~~~~~~~~~~~~~~~ include/linux/module.h:128:42: note: previous definition of '__inittest' was here 128 | static inline initcall_t __maybe_unused __inittest(void) \ | ^~~~~~~~~~ include/linux/device.h:1903:1: note: in expansion of macro 'module_init' 1903 | module_init(__driver##_init); \ | ^~~~~~~~~~~ include/linux/platform_device.h:238:2: note: in expansion of macro 'module_driver' 238 | module_driver(__platform_driver, platform_driver_register, \ | ^~~~~~~~~~~~~ sound/soc/codecs/rpmsg_wm8960.c:1546:1: note: in expansion of macro 'module_platform_driver' 1546 | module_platform_driver(rpmsg_wm8960_codec_driver); | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/module.h:130:6: error: redefinition of 'init_module' 130 | int init_module(void) __copy(initfn) __attribute__((alias(#initfn))); | ^~~~~~~~~~~ include/linux/device.h:1903:1: note: in expansion of macro 'module_init' 1903 | module_init(__driver##_init); \ | ^~~~~~~~~~~ include/linux/i2c.h:911:2: note: in expansion of macro 'module_driver' 911 | module_driver(__i2c_driver, i2c_add_driver, \ | ^~~~~~~~~~~~~ sound/soc/codecs/rpmsg_wm8960.c:1664:1: note: in expansion of macro 'module_i2c_driver' 1664 | module_i2c_driver(rpmsg_wm8960_i2c_driver); | ^~~~~~~~~~~~~~~~~ include/linux/module.h:130:6: note: previous definition of 'init_module' was here 130 | int init_module(void) __copy(initfn) __attribute__((alias(#initfn))); | ^~~~~~~~~~~ include/linux/device.h:1903:1: note: in expansion of macro 'module_init' 1903 | module_init(__driver##_init); \ | ^~~~~~~~~~~ include/linux/platform_device.h:238:2: note: in expansion of macro 'module_driver' 238 | module_driver(__platform_driver, platform_driver_register, \ | ^~~~~~~~~~~~~ sound/soc/codecs/rpmsg_wm8960.c:1546:1: note: in expansion of macro 'module_platform_driver' 1546 | module_platform_driver(rpmsg_wm8960_codec_driver); | ^~~~~~~~~~~~~~~~~~~~~~ >> include/linux/module.h:134:42: error: redefinition of '__exittest' 134 | static inline exitcall_t __maybe_unused __exittest(void) \ | ^~~~~~~~~~ include/linux/device.h:1908:1: note: in expansion of macro 'module_exit' 1908 | module_exit(__driver##_exit); | ^~~~~~~~~~~ include/linux/i2c.h:911:2: note: in expansion of macro 'module_driver' 911 | module_driver(__i2c_driver, i2c_add_driver, \ | ^~~~~~~~~~~~~ sound/soc/codecs/rpmsg_wm8960.c:1664:1: note: in expansion of macro 'module_i2c_driver' 1664 | module_i2c_driver(rpmsg_wm8960_i2c_driver); | ^~~~~~~~~~~~~~~~~ include/linux/module.h:134:42: note: previous definition of '__exittest' was here 134 | static inline exitcall_t __maybe_unused __exittest(void) \ | ^~~~~~~~~~ include/linux/device.h:1908:1: note: in expansion of macro 'module_exit' 1908 | module_exit(__driver##_exit); | ^~~~~~~~~~~ include/linux/platform_device.h:238:2: note: in expansion of macro 'module_driver' 238 | module_driver(__platform_driver, platform_driver_register, \ | ^~~~~~~~~~~~~ sound/soc/codecs/rpmsg_wm8960.c:1546:1: note: in expansion of macro 'module_platform_driver' 1546 | module_platform_driver(rpmsg_wm8960_codec_driver); | ^~~~~~~~~~~~~~~~~~~~~~ >> include/linux/module.h:136:7: error: redefinition of 'cleanup_module' 136 | void cleanup_module(void) __copy(exitfn) __attribute__((alias(#exitfn))); | ^~~~~~~~~~~~~~ include/linux/device.h:1908:1: note: in expansion of macro 'module_exit' 1908 | module_exit(__driver##_exit); | ^~~~~~~~~~~ include/linux/i2c.h:911:2: note: in expansion of macro 'module_driver' 911 | module_driver(__i2c_driver, i2c_add_driver, \ | ^~~~~~~~~~~~~ sound/soc/codecs/rpmsg_wm8960.c:1664:1: note: in expansion of macro 'module_i2c_driver' 1664 | module_i2c_driver(rpmsg_wm8960_i2c_driver); | ^~~~~~~~~~~~~~~~~ include/linux/module.h:136:7: note: previous definition of 'cleanup_module' was here 136 | void cleanup_module(void) __copy(exitfn) __attribute__((alias(#exitfn))); | ^~~~~~~~~~~~~~ include/linux/device.h:1908:1: note: in expansion of macro 'module_exit' 1908 | module_exit(__driver##_exit); | ^~~~~~~~~~~ include/linux/platform_device.h:238:2: note: in expansion of macro 'module_driver' 238 | module_driver(__platform_driver, platform_driver_register, \ | ^~~~~~~~~~~~~ sound/soc/codecs/rpmsg_wm8960.c:1546:1: note: in expansion of macro 'module_platform_driver' 1546 | module_platform_driver(rpmsg_wm8960_codec_driver); | ^~~~~~~~~~~~~~~~~~~~~~ >> include/linux/module.h:227:21: error: '__mod_i2c__wm8960_i2c_id_device_table' aliased to undefined symbol 'wm8960_i2c_id' 227 | extern typeof(name) __mod_##type##__##name##_device_table \ | ^~~~~~ sound/soc/codecs/rpmsg_wm8960.c:1646:1: note: in expansion of macro 'MODULE_DEVICE_TABLE' 1646 | MODULE_DEVICE_TABLE(i2c, wm8960_i2c_id); | ^~~~~~~~~~~~~~~~~~~ vim +1646 sound/soc/codecs/rpmsg_wm8960.c 1641 1642 static const struct i2c_device_id rpmsg_wm8960_i2c_id[] = { 1643 { "wm8960", 0 }, 1644 { } 1645 }; > 1646 MODULE_DEVICE_TABLE(i2c, wm8960_i2c_id); 1647 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org