Skip to contentSkip to conversation

clk: npcm: select CONFIG_AUXILIARY_BUS

PATCH Applied Arnd Bergmann 2 participants 2 messages Aug 7, 2025 – Aug 14, 2025 Common clk

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: npcm: select CONFIG_AUXILIARY_BUS

From: Arnd Bergmann <[email protected]>

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")
---
 drivers/clk/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/Kconfig +1 -0
index 4d56475f94fc..b1425aed6593 100644
@@ -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
Signature · 1 line
2.39.5
maintainer Applied
#1 lore raw

Quoting Arnd Bergmann (2025-08-07 00:22:37)

Quoted 6 lines

From: Arnd Bergmann <[email protected]>

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:

Quoted 8 lines

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

---

Applied to clk-next