Patchwork Fix "error: implicit declaration of function 'page_address'"

login
register
mail settings
Submitter Alexey Dobriyan
Date March 27, 2009, 3:53 p.m.
Message ID <20090327155327.GA14867@x200.localdomain>
Download mbox | patch
Permalink /patch/25227/
State Not Applicable
Delegated to: David Miller
Headers show

Comments

Alexey Dobriyan - March 27, 2009, 3:53 p.m.
As seen on mips:

In file included from include/net/sock.h:50,
                 from security/selinux/avc.c:25:
include/linux/netdevice.h: In function 'skb_gro_mac_header':
include/linux/netdevice.h:1132: error: implicit declaration of function 'page_address'
include/linux/netdevice.h:1133: warning: pointer/integer type mismatch in conditional expression

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 include/linux/netdevice.h |    1 +
 1 file changed, 1 insertion(+)

--
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
David Miller - March 27, 2009, 10:58 p.m.
From: Alexey Dobriyan <adobriyan@gmail.com>
Date: Fri, 27 Mar 2009 18:53:27 +0300

> As seen on mips:
> 
> In file included from include/net/sock.h:50,
>                  from security/selinux/avc.c:25:
> include/linux/netdevice.h: In function 'skb_gro_mac_header':
> include/linux/netdevice.h:1132: error: implicit declaration of function 'page_address'
> include/linux/netdevice.h:1133: warning: pointer/integer type mismatch in conditional expression
> 
> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>

Yep, I just applied a similar fix from Dmitri Vorobiev.

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

--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -32,6 +32,7 @@ 
 #ifdef __KERNEL__
 #include <linux/timer.h>
 #include <linux/delay.h>
+#include <linux/mm.h>
 #include <asm/atomic.h>
 #include <asm/cache.h>
 #include <asm/byteorder.h>