[PATCH v2] soc: imx8m: Probe the SoC driver as platform driver

kernel test robot lkp at intel.com
Sat Sep 28 01:24:46 PDT 2024


Hi Marek,

kernel test robot noticed the following build errors:

[auto build test ERROR on shawnguo/for-next]
[also build test ERROR on soc/for-next linus/master v6.11 next-20240927]
[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/Marek-Vasut/soc-imx8m-Probe-the-SoC-driver-as-platform-driver/20240926-060831
base:   https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git for-next
patch link:    https://lore.kernel.org/r/20240925220552.149551-1-marex%40denx.de
patch subject: [PATCH v2] soc: imx8m: Probe the SoC driver as platform driver
config: x86_64-allmodconfig (https://download.01.org/0day-ci/archive/20240928/202409281619.4SHXVZe7-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240928/202409281619.4SHXVZe7-lkp@intel.com/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 <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409281619.4SHXVZe7-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/soc/imx/soc-imx8m.c:302:1: error: redefinition of '__inittest'
     302 | device_initcall(imx8_soc_init);
         | ^
   include/linux/module.h:122:30: note: expanded from macro 'device_initcall'
     122 | #define device_initcall(fn)             module_init(fn)
         |                                         ^
   include/linux/module.h:131:42: note: expanded from macro 'module_init'
     131 |         static inline initcall_t __maybe_unused __inittest(void)                \
         |                                                 ^
   drivers/soc/imx/soc-imx8m.c:292:1: note: previous definition is here
     292 | module_platform_driver(imx8m_soc_driver);
         | ^
   include/linux/platform_device.h:302:2: note: expanded from macro 'module_platform_driver'
     302 |         module_driver(__platform_driver, platform_driver_register, \
         |         ^
   include/linux/device/driver.h:261:3: note: expanded from macro 'module_driver'
     261 | } \
         |   ^
   include/linux/module.h:131:42: note: expanded from macro '\
   module_init'
     131 |         static inline initcall_t __maybe_unused __inittest(void)                \
         |                                                 ^
>> drivers/soc/imx/soc-imx8m.c:302:1: error: redefinition of 'init_module'
     302 | device_initcall(imx8_soc_init);
         | ^
   include/linux/module.h:122:30: note: expanded from macro 'device_initcall'
     122 | #define device_initcall(fn)             module_init(fn)
         |                                         ^
   include/linux/module.h:133:6: note: expanded from macro 'module_init'
     133 |         int init_module(void) __copy(initfn)                    \
         |             ^
   drivers/soc/imx/soc-imx8m.c:292:1: note: previous definition is here
     292 | module_platform_driver(imx8m_soc_driver);
         | ^
   include/linux/platform_device.h:302:2: note: expanded from macro 'module_platform_driver'
     302 |         module_driver(__platform_driver, platform_driver_register, \
         |         ^
   include/linux/device/driver.h:261:3: note: expanded from macro 'module_driver'
     261 | } \
         |   ^
   include/linux/module.h:133:6: note: expanded from macro '\
   module_init'
     133 |         int init_module(void) __copy(initfn)                    \
         |             ^
   2 errors generated.


vim +/__inittest +302 drivers/soc/imx/soc-imx8m.c

d817f7a9bde892 drivers/soc/imx/soc-imx8m.c Marek Vasut 2024-09-26  293  
d817f7a9bde892 drivers/soc/imx/soc-imx8m.c Marek Vasut 2024-09-26  294  static int __init imx8_soc_init(void)
d817f7a9bde892 drivers/soc/imx/soc-imx8m.c Marek Vasut 2024-09-26  295  {
d817f7a9bde892 drivers/soc/imx/soc-imx8m.c Marek Vasut 2024-09-26  296  	struct platform_device *pdev;
d817f7a9bde892 drivers/soc/imx/soc-imx8m.c Marek Vasut 2024-09-26  297  
d817f7a9bde892 drivers/soc/imx/soc-imx8m.c Marek Vasut 2024-09-26  298  	pdev = platform_device_register_simple("imx8m-soc", -1, NULL, 0);
d817f7a9bde892 drivers/soc/imx/soc-imx8m.c Marek Vasut 2024-09-26  299  
d817f7a9bde892 drivers/soc/imx/soc-imx8m.c Marek Vasut 2024-09-26  300  	return IS_ERR(pdev) ? PTR_ERR(pdev) : 0;
d817f7a9bde892 drivers/soc/imx/soc-imx8m.c Marek Vasut 2024-09-26  301  }
a7e26f356ca129 drivers/soc/imx/soc-imx8.c  Abel Vesa   2019-03-22 @302  device_initcall(imx8_soc_init);

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



More information about the linux-arm-kernel mailing list