Revert "sh: add missing EXPORT_SYMBOL() for __delay"
diff mbox series

Message ID
State New
Headers show
  • Revert "sh: add missing EXPORT_SYMBOL() for __delay"
Related show

Commit Message

Geert Uytterhoeven June 8, 2020, 8:06 a.m. UTC
This reverts commit d1f56f318d234fc5db230af2f3e0088f689ab3c0.

__delay() is an internal implementation detail on several architectures.
Drivers should not call __delay() directly, as it has non-standardized
semantics, or may not even exist.
Hence there is no need to export __delay() to modules.

See also include/asm-generic/delay.h:

    /* Undefined functions to get compile-time errors */
    extern void __delay(unsigned long loops);

Signed-off-by: Geert Uytterhoeven <>
Sorry for missing this when Adrian posted his list of mising patches.

[1] "Re: Build regressions/improvements in v5.4-rc2"
[2] "Re: [PATCH] sh: add missing EXPORT_SYMBOL() for __delay"
 arch/sh/lib/delay.c | 1 -
 1 file changed, 1 deletion(-)

diff mbox series

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