linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: npcm: select CONFIG_AUXILIARY_BUS
@ 2025-08-07  7:22 Arnd Bergmann
  2025-08-14 21:41 ` Stephen Boyd
  0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2025-08-07  7:22 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd, Tomer Maimon
  Cc: Arnd Bergmann, Yixun Lan, Sven Peter, Inochi Amaoto,
	Andrea della Porta, Robert Marko, Théo Lebrun, Nikita Shubin,
	Andreas Kemnade, linux-clk, linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

There are very rare randconfig builds that turn on this driver but
don't already select CONFIG_AUXILIARY_BUS from another driver, and
this results in a build failure:

arm-linux-gnueabi-ld: drivers/clk/clk-npcm8xx.o: in function `npcm8xx_clock_driver_init':
clk-npcm8xx.c:(.init.text+0x18): undefined reference to `__auxiliary_driver_register'

Select the bus here, as all other clk drivers using it do.

Fixes: e0b255df027e ("clk: npcm8xx: add clock controller")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/clk/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
index 4d56475f94fc..b1425aed6593 100644
--- a/drivers/clk/Kconfig
+++ b/drivers/clk/Kconfig
@@ -364,6 +364,7 @@ config COMMON_CLK_LOCHNAGAR
 config COMMON_CLK_NPCM8XX
 	tristate "Clock driver for the NPCM8XX SoC Family"
 	depends on ARCH_NPCM || COMPILE_TEST
+	select AUXILIARY_BUS
 	help
 	  This driver supports the clocks on the Nuvoton BMC NPCM8XX SoC Family,
 	  all the clocks are initialized by the bootloader, so this driver
-- 
2.39.5


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

* Re: [PATCH] clk: npcm: select CONFIG_AUXILIARY_BUS
  2025-08-07  7:22 [PATCH] clk: npcm: select CONFIG_AUXILIARY_BUS Arnd Bergmann
@ 2025-08-14 21:41 ` Stephen Boyd
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Boyd @ 2025-08-14 21:41 UTC (permalink / raw)
  To: Arnd Bergmann, Michael Turquette, Tomer Maimon
  Cc: Arnd Bergmann, Yixun Lan, Sven Peter, Inochi Amaoto,
	Andrea della Porta, Robert Marko, Théo Lebrun, Nikita Shubin,
	Andreas Kemnade, linux-clk, linux-kernel

Quoting Arnd Bergmann (2025-08-07 00:22:37)
> From: Arnd Bergmann <arnd@arndb.de>
> 
> There are very rare randconfig builds that turn on this driver but
> don't already select CONFIG_AUXILIARY_BUS from another driver, and
> this results in a build failure:
> 
> arm-linux-gnueabi-ld: drivers/clk/clk-npcm8xx.o: in function `npcm8xx_clock_driver_init':
> clk-npcm8xx.c:(.init.text+0x18): undefined reference to `__auxiliary_driver_register'
> 
> Select the bus here, as all other clk drivers using it do.
> 
> Fixes: e0b255df027e ("clk: npcm8xx: add clock controller")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---

Applied to clk-next

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

end of thread, other threads:[~2025-08-14 21:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-07  7:22 [PATCH] clk: npcm: select CONFIG_AUXILIARY_BUS Arnd Bergmann
2025-08-14 21:41 ` Stephen Boyd

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).