From: kernel test robot <lkp@intel.com>
To: Marek Vasut <marex@denx.de>, linux-arm-kernel@lists.infradead.org
Cc: oe-kbuild-all@lists.linux.dev, kernel@dh-electronics.com,
Marek Vasut <marex@denx.de>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
Arnd Bergmann <arnd@arndb.de>, Fabio Estevam <festevam@gmail.com>,
Jeff Johnson <quic_jjohnson@quicinc.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Saravana Kannan <saravanak@google.com>,
Sascha Hauer <s.hauer@pengutronix.de>,
Shawn Guo <shawnguo@kernel.org>,
imx@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] soc: imx8m: Probe the SoC driver as platform driver
Date: Sat, 28 Sep 2024 16:24:46 +0800 [thread overview]
Message-ID: <202409281619.4SHXVZe7-lkp@intel.com> (raw)
In-Reply-To: <20240925220552.149551-1-marex@denx.de>
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@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
prev parent reply other threads:[~2024-09-28 8:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-25 22:04 [PATCH v2] soc: imx8m: Probe the SoC driver as platform driver Marek Vasut
2024-09-25 23:03 ` Saravana Kannan
2024-09-26 21:35 ` Marek Vasut
2024-09-26 6:28 ` Arnd Bergmann
2024-09-26 17:36 ` Saravana Kannan
2024-09-26 21:26 ` Marek Vasut
2024-09-28 8:24 ` kernel test robot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202409281619.4SHXVZe7-lkp@intel.com \
--to=lkp@intel.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=arnd@arndb.de \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=kernel@dh-electronics.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marex@denx.de \
--cc=neil.armstrong@linaro.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=quic_jjohnson@quicinc.com \
--cc=s.hauer@pengutronix.de \
--cc=saravanak@google.com \
--cc=shawnguo@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox