2008-08-06 21:21:36

by Adrian Bunk

[permalink] [raw]
Subject: [2.6 patch] m32r: export __ndelay

This patch fixes the following build error:

<-- snip -->

...
MODPOST 1083 modules
ERROR: "__ndelay" [drivers/spi/spi_bitbang.ko] undefined!
...
make[2]: *** [__modpost] Error 1

<-- snip -->

Reported-by: Adrian Bunk <[email protected]>
Signed-off-by: Adrian Bunk <[email protected]>

---

This patch has been sent on:
- 11 Jun 2008

arch/m32r/lib/delay.c | 2 ++
1 file changed, 2 insertions(+)

75460f5ec520539e33163ac455ffe4400da341c3 diff --git a/arch/m32r/lib/delay.c b/arch/m32r/lib/delay.c
index 59bfc34..ced549b 100644
--- a/arch/m32r/lib/delay.c
+++ b/arch/m32r/lib/delay.c
@@ -6,6 +6,7 @@
*/

#include <linux/param.h>
+#include <linux/module.h>
#ifdef CONFIG_SMP
#include <linux/sched.h>
#include <asm/current.h>
@@ -121,3 +122,4 @@ void __ndelay(unsigned long nsecs)
{
__const_udelay(nsecs * 0x00005); /* 2**32 / 1000000000 (rounded up) */
}
+EXPORT_SYMBOL(__ndelay);