Skip to content

Commit

Permalink
sh: add missing EXPORT_SYMBOL() for __delay
Browse files Browse the repository at this point in the history
__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!

Link: https://marc.info/?l=linux-kernel&m=157611811927852
Signed-off-by: morimoto <[email protected]>
Signed-off-by: Kuninori Morimoto <[email protected]>
Cc: Yoshinori Sato <[email protected]>
Cc: Rich Felker <[email protected]>
Cc: John Paul Adrian Glaubitz <[email protected]>
Cc: Alan Modra <[email protected]>
Cc: Bin Meng <[email protected]>
Cc: Chen Zhou <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Romain Naour <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Stephen Rothwell <[email protected]>
  • Loading branch information
morimoto authored and sfrothwell committed Jun 5, 2020
1 parent 80913dc commit 3d88da3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/sh/lib/delay.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ inline void __const_udelay(unsigned long xloops)
: "macl", "mach");
__delay(++xloops);
}
EXPORT_SYMBOL(__delay);

void __udelay(unsigned long usecs)
{
Expand Down

0 comments on commit 3d88da3

Please sign in to comment.