]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Revert "sh: add missing EXPORT_SYMBOL() for __delay"
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 8 Jun 2020 08:06:36 +0000 (10:06 +0200)
committerRich Felker <dalias@libc.org>
Sat, 15 Aug 2020 02:05:04 +0000 (22:05 -0400)
This reverts commit 18914082ddc8ed307b5c659f78d755b9d5eeb1a4.

__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 <geert+renesas@glider.be>
Signed-off-by: Rich Felker <dalias@libc.org>
arch/sh/lib/delay.c

index 540e670dbafcd826a5f148173c240501cc8274e4..dad8e6a54906bece957c8ec7fbd6a35cfcfb9bec 100644 (file)
@@ -29,7 +29,6 @@ void __delay(unsigned long loops)
                : "0" (loops)
                : "t");
 }
-EXPORT_SYMBOL(__delay);
 
 inline void __const_udelay(unsigned long xloops)
 {