Re: [PATCH] drivers/net/dnet.c needs <linux/io.h>

Previous thread: [PATCH] Add dependent headers to trace/skb.h by Josh Stone on Tuesday, March 24, 2009 - 12:44 pm. (1 message)

Next thread: Lieber Freund!!! by janetmbeku787865 on Tuesday, March 24, 2009 - 1:23 pm. (1 message)
From: Geert Uytterhoeven
Date: Tuesday, March 24, 2009 - 12:43 pm

On m68k:
| drivers/net/dnet.c: In function 'dnet_readw_mac':
| drivers/net/dnet.c:36: error: implicit declaration of function 'writel'
| drivers/net/dnet.c:43: error: implicit declaration of function 'readl'
| drivers/net/dnet.c: In function 'dnet_probe':
| drivers/net/dnet.c:873: error: implicit declaration of function 'ioremap'
| drivers/net/dnet.c:873: warning: assignment makes pointer from integer without a cast
| drivers/net/dnet.c:939: error: implicit declaration of function 'iounmap'

Signed-off-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
---
 drivers/net/dnet.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/net/dnet.c b/drivers/net/dnet.c
index 1b40632..edf23c9 100644
--- a/drivers/net/dnet.c
+++ b/drivers/net/dnet.c
@@ -9,6 +9,7 @@
  * published by the Free Software Foundation.
  */
 #include &lt;linux/version.h&gt;
+#include &lt;linux/io.h&gt;
 #include &lt;linux/module.h&gt;
 #include &lt;linux/moduleparam.h&gt;
 #include &lt;linux/kernel.h&gt;
-- 
1.6.2

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say &quot;programmer&quot; or something like that.
							    -- Linus Torvalds
--

From: David Miller
Date: Tuesday, March 24, 2009 - 1:19 pm

From: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;

Applied, thanks!
--

Previous thread: [PATCH] Add dependent headers to trace/skb.h by Josh Stone on Tuesday, March 24, 2009 - 12:44 pm. (1 message)

Next thread: Lieber Freund!!! by janetmbeku787865 on Tuesday, March 24, 2009 - 1:23 pm. (1 message)