mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] sh: add missing EXPORT_SYMBOL() for __delay
@ 2019-12-12  2:38 Kuninori Morimoto
  2019-12-12  7:43 ` Geert Uytterhoeven
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Kuninori Morimoto @ 2019-12-12  2:38 UTC (permalink / raw)
  To: Yoshinori Sato, Rich Felker, Andrew Morton; +Cc: linux-sh, linux-kernel


From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

__delay() is used from kernel module.
We need EXPORT_SYMBOL(), otherwise we will get compile error.

ERROR: "__delay" [drivers/net/phy/mdio-cavium.ko] undefined!

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 arch/sh/lib/delay.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/sh/lib/delay.c b/arch/sh/lib/delay.c
index dad8e6a..540e670 100644
--- a/arch/sh/lib/delay.c
+++ b/arch/sh/lib/delay.c
@@ -29,6 +29,7 @@ void __delay(unsigned long loops)
 		: "0" (loops)
 		: "t");
 }
+EXPORT_SYMBOL(__delay);
 
 inline void __const_udelay(unsigned long xloops)
 {
-- 
2.7.4


^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH] sh: add missing EXPORT_SYMBOL() for __delay
@ 2019-12-12  2:34 morimoto
  2019-12-12  2:36 ` Kuninori Morimoto
  0 siblings, 1 reply; 12+ messages in thread
From: morimoto @ 2019-12-12  2:34 UTC (permalink / raw)
  To: Yoshinori Sato, Rich Felker, Andrew Morton; +Cc: linux-sh, linux-kernel


From: morimoto <kuninori.morimoto.gx@renesas.com>

__delay() is used from kernel module.
We need EXPORT_SYMBOL(), otherwise we will get compile error.

ERROR: "__delay" [drivers/net/phy/mdio-cavium.ko] undefined!

Signed-off-by: morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 arch/sh/lib/delay.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/sh/lib/delay.c b/arch/sh/lib/delay.c
index dad8e6a..540e670 100644
--- a/arch/sh/lib/delay.c
+++ b/arch/sh/lib/delay.c
@@ -29,6 +29,7 @@ void __delay(unsigned long loops)
 		: "0" (loops)
 		: "t");
 }
+EXPORT_SYMBOL(__delay);
 
 inline void __const_udelay(unsigned long xloops)
 {
-- 
2.7.4


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

end of thread, other threads:[~2020-08-03 10:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-12  2:38 [PATCH] sh: add missing EXPORT_SYMBOL() for __delay Kuninori Morimoto
2019-12-12  7:43 ` Geert Uytterhoeven
2019-12-12 23:57   ` Kuninori Morimoto
2019-12-16 11:28 ` Yoshinori Sato
2020-07-22  2:38 ` Guenter Roeck
2020-07-22 22:52   ` Rich Felker
2020-07-22 23:52     ` Guenter Roeck
2020-07-24 19:44       ` Rich Felker
2020-07-24 23:25         ` Andrew Morton
2020-08-03 10:01       ` Geert Uytterhoeven
  -- strict thread matches above, loose matches on Subject: below --
2019-12-12  2:34 morimoto
2019-12-12  2:36 ` Kuninori Morimoto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome