From d1f56f318d234fc5db230af2f3e0088f689ab3c0 Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Thu, 12 Dec 2019 11:38:43 +0900 Subject: [PATCH] sh: add missing EXPORT_SYMBOL() for __delay __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 Signed-off-by: Rich Felker --- 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 dad8e6a54906..540e670dbafc 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) {