Skip to contentSkip to conversation

s390: lib: Export __delay

PATCH Applied Guenter Roeck 2 participants 2 messages Aug 5, 2015 s390

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390: lib: Export __delay

__delay is exported by most architectures, and may be used in modules. Since it is not exported for s390, s390:allmodconfig currently fails to build with

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

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/s390/lib/delay.c | 1 +
 1 file changed, 1 insertion(+)
arch/s390/lib/delay.c +1 -0
index 16dc42d83f93..246a7eb4b680 100644
@@ -26,6 +26,7 @@ void __delay(unsigned long loops)
          */
 	asm volatile("0: brct %0,0b" : : "d" ((loops/2) + 1));
 }
+EXPORT_SYMBOL(__delay);
 
 static void __udelay_disabled(unsigned long long usecs)
 {
Signature · 1 line
2.1.4
#1 lore raw
Quoted 6 lines · Guenter Roeck

__delay is exported by most architectures, and may be used in modules. Since it is not exported for s390, s390:allmodconfig currently fails to build with

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

Quoted 8 lines
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/s390/lib/delay.c | 1 +
 1 file changed, 1 insertion(+)

Applied, thanks.