Skip to contentSkip to conversation

alpha: lib: Export __delay

PATCH New Guenter Roeck 1 participant 1 message Aug 5, 2015 Alpha port

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 alpha: lib: Export __delay

__delay is exported by most architectures, and may be used in modules. Since it is not exported for alpha, alpha builds currently fail to build in -next with

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

if the offending driver is configured.

Fixes a6d678645210 ("net: mdio-octeon: Modify driver to work on both

ThunderX and Octeon")

Cc Radha Mohan Chintakuntla <[email protected]>
Cc David Daney <[email protected]>
---
 arch/alpha/lib/udelay.c | 1 +
 1 file changed, 1 insertion(+)
arch/alpha/lib/udelay.c +1 -0
index 69d52aa37bae..f2d81ff38aa6 100644
@@ -30,6 +30,7 @@ __delay(int loops)
 		"	bgt %0,1b"
 		: "=&r" (tmp), "=r" (loops) : "1"(loops));
 }
+EXPORT_SYMBOL(__delay);
 
 #ifdef CONFIG_SMP
 #define LPJ	 cpu_data[smp_processor_id()].loops_per_jiffy
Signature · 1 line
2.1.4