Skip to contentSkip to conversation

MIPS: lantiq: export clk_get_io() for lantiq_wdt.ko

PATCH Applied Randy Dunlap 2 participants 2 messages Sep 17, 2022 – Sep 19, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: lantiq: export clk_get_io() for lantiq_wdt.ko

The lantiq WDT driver uses clk_get_io(), which is not exported, so export it to fix a build error:

ERROR: modpost: "clk_get_io" [drivers/watchdog/lantiq_wdt.ko] undefined!

Fixes 287e3f3f4e68 ("MIPS: lantiq: implement support for clkdev api")
Cc Thomas Bogendoerfer <[email protected]>
Cc John Crispin <[email protected]>
---
 arch/mips/lantiq/clk.c |    1 +
 1 file changed, 1 insertion(+)
arch/mips/lantiq/clk.c +1 -0
@@ -50,6 +50,7 @@ struct clk *clk_get_io(void)
 {
 	return &cpu_clk_generic[2];
 }
+EXPORT_SYMBOL_GPL(clk_get_io);
 
 struct clk *clk_get_ppe(void)
 {
maintainer Applied
#1 lore raw
Quoted 18 lines · Randy Dunlap

The lantiq WDT driver uses clk_get_io(), which is not exported, so export it to fix a build error:

ERROR: modpost: "clk_get_io" [drivers/watchdog/lantiq_wdt.ko] undefined!

Fixes 287e3f3f4e68 ("MIPS: lantiq: implement support for clkdev api")
Cc Thomas Bogendoerfer <[email protected]>
Cc John Crispin <[email protected]>
---
 arch/mips/lantiq/clk.c |    1 +
 1 file changed, 1 insertion(+)

arch/mips/lantiq/clk.c struct clk *clk_get_io(void) · line 56

Quoted 7 lines
arch/mips/lantiq/clk.c +1 -0
@@ -50,6 +50,7 @@ struct clk *clk_get_io(void)
 {
 	return &cpu_clk_generic[2];
 }
+EXPORT_SYMBOL_GPL(clk_get_io);
 
 struct clk *clk_get_ppe(void)
 {

applied to mips-fixes.

Thomas.

Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]