diff mbox series

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

Message ID 20220917232540.25436-1-rdunlap@infradead.org (mailing list archive)
State Accepted
Commit 502550123bee6a2ffa438409b5b9aad4d6db3a8c
Headers show
Series MIPS: lantiq: export clk_get_io() for lantiq_wdt.ko | expand

Commit Message

Randy Dunlap Sept. 17, 2022, 11:25 p.m. UTC
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")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: John Crispin <john@phrozen.org>
Cc: linux-mips@vger.kernel.org
---
 arch/mips/lantiq/clk.c |    1 +
 1 file changed, 1 insertion(+)

Comments

Thomas Bogendoerfer Sept. 19, 2022, 2:50 p.m. UTC | #1
On Sat, Sep 17, 2022 at 04:25:40PM -0700, Randy Dunlap wrote:
> 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")
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Reported-by: kernel test robot <lkp@intel.com>
> Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
> Cc: John Crispin <john@phrozen.org>
> Cc: linux-mips@vger.kernel.org
> ---
>  arch/mips/lantiq/clk.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> --- a/arch/mips/lantiq/clk.c
> +++ b/arch/mips/lantiq/clk.c
> @@ -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.
diff mbox series

Patch

--- a/arch/mips/lantiq/clk.c
+++ b/arch/mips/lantiq/clk.c
@@ -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)
 {