linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] soc: imx8: select SOC_BUS
@ 2020-04-09  7:51 Arnd Bergmann
  2020-04-09  9:00 ` Peng Fan
  0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2020-04-09  7:51 UTC (permalink / raw)
  To: soc, Shawn Guo, Sascha Hauer, Peng Fan, Leonard Crestez
  Cc: Arnd Bergmann, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Abel Vesa, Anson Huang, linux-arm-kernel,
	linux-kernel

Compile-testing the driver can result in a link failure
when CONFIG_SOC_BUS is disabled:

x86_64-linux-ld: drivers/soc/imx/soc-imx8m.o: in function `imx8_soc_init':
soc-imx8m.c:(.init.text+0x28d): undefined reference to `soc_device_register'

Select it from Kconfig, as we do from the other SoC drivers.

Fixes: fc40200ebf82 ("soc: imx: increase build coverage for imx8m soc driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/soc/imx/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/soc/imx/Kconfig b/drivers/soc/imx/Kconfig
index 67aa94b2481b..d515d2cc20ed 100644
--- a/drivers/soc/imx/Kconfig
+++ b/drivers/soc/imx/Kconfig
@@ -21,6 +21,7 @@ config SOC_IMX8M
 	bool "i.MX8M SoC family support"
 	depends on ARCH_MXC || COMPILE_TEST
 	default ARCH_MXC && ARM64
+	select SOC_BUS
 	help
 	  If you say yes here you get support for the NXP i.MX8M family
 	  support, it will provide the SoC info like SoC family,
-- 
2.26.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* RE: [PATCH] soc: imx8: select SOC_BUS
  2020-04-09  7:51 [PATCH] soc: imx8: select SOC_BUS Arnd Bergmann
@ 2020-04-09  9:00 ` Peng Fan
  0 siblings, 0 replies; 2+ messages in thread
From: Peng Fan @ 2020-04-09  9:00 UTC (permalink / raw)
  To: Arnd Bergmann, soc, Shawn Guo, Sascha Hauer, Leonard Crestez
  Cc: Pengutronix Kernel Team, Fabio Estevam, dl-linux-imx, Abel Vesa,
	Anson Huang, linux-arm-kernel, linux-kernel

> Subject: [PATCH] soc: imx8: select SOC_BUS
> 
> Compile-testing the driver can result in a link failure when CONFIG_SOC_BUS
> is disabled:
> 
> x86_64-linux-ld: drivers/soc/imx/soc-imx8m.o: in function `imx8_soc_init':
> soc-imx8m.c:(.init.text+0x28d): undefined reference to `soc_device_register'
> 
> Select it from Kconfig, as we do from the other SoC drivers.
> 
> Fixes: fc40200ebf82 ("soc: imx: increase build coverage for imx8m soc driver")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Acked-by: Peng Fan <peng.fan@nxp.com>

Thanks,
Peng.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-09  9:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-09  7:51 [PATCH] soc: imx8: select SOC_BUS Arnd Bergmann
2020-04-09  9:00 ` Peng Fan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).