Netdev List
 help / color / mirror / Atom feed
* [PATCH] Fix "error: implicit declaration of function 'page_address'"
@ 2009-03-27 15:53 Alexey Dobriyan
  2009-03-27 22:58 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Dobriyan @ 2009-03-27 15:53 UTC (permalink / raw)
  To: davem; +Cc: netdev

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(+)

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix "error: implicit declaration of function 'page_address'"
  2009-03-27 15:53 [PATCH] Fix "error: implicit declaration of function 'page_address'" Alexey Dobriyan
@ 2009-03-27 22:58 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2009-03-27 22:58 UTC (permalink / raw)
  To: adobriyan; +Cc: netdev

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!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-27 22:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-27 15:53 [PATCH] Fix "error: implicit declaration of function 'page_address'" Alexey Dobriyan
2009-03-27 22:58 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox