Patchwork drivers/net/dnet.c needs <linux/io.h>

login
register
mail settings
Submitter Geert Uytterhoeven
Date March 24, 2009, 7:43 p.m.
Message ID <Pine.LNX.4.64.0903242042060.19647@anakin>
Download mbox | patch
Permalink /patch/25026/
State Accepted
Delegated to: David Miller
Headers show

Comments

Geert Uytterhoeven - March 24, 2009, 7:43 p.m.
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 <geert@linux-m68k.org>
---
 drivers/net/dnet.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
David Miller - March 24, 2009, 8:19 p.m.
From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: Tue, 24 Mar 2009 20:43:25 +0100 (CET)

> 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 <geert@linux-m68k.org>

Applied, thanks!
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

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 <linux/version.h>
+#include <linux/io.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/kernel.h>