[2.6 patch] m32r: export __ndelay

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <takata@...>
Cc: <linux-m32r@...>, <linux-kernel@...>, Andrew Morton <akpm@...>
Date: Wednesday, August 6, 2008 - 5:11 pm

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 <bunk@kernel.org>
Signed-off-by: Adrian Bunk <bunk@kernel.org>

---

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);

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[2.6 patch] m32r: export __ndelay, Adrian Bunk, (Wed Aug 6, 5:11 pm)