[PATCH 1/1] Add missing include into include/linux/netdevice.h



The inline function skb_gro_mac_header defined in include/linux/netdevice.h
makes use of page_address(). Depending on configuration options, the latter
is either defined as a macro or is declared as a function in another header
file, namely include/linux/mm.h. However, include/linux/netdevice.h does not
include include/linux/mm.h.

On MIPS, this has produced the following build error:

CC kernel/sysctl_check.o
In file included from include/linux/icmpv6.h:173,
from include/linux/ipv6.h:208,
from include/net/ip_vs.h:26,
from kernel/sysctl_check.c:6:
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
make[1]: *** [kernel/sysctl_check.o] Error 1
make: *** [kernel] Error 2

The patch adds the missing include and fixes the build error.

Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@xxxxxxxxxx>
---
include/linux/netdevice.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index be3ebd7..1b55952 100644
--- 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>
--
1.5.6.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: [PATCH 1/1] Add missing include into include/linux/netdevice.h
    ... Depending on configuration options, the latter ... is either defined as a macro or is declared as a function in another header ...
    (Linux-Kernel)
  • Re: Date in header
    ... There is nothing in that macro that will of itself add anything to the ... Why not simply create a letterhead template for your users ... Word MVP web site http://word.mvps.org ... No header exists before the macro is run, ...
    (microsoft.public.word.docmanagement)
  • Re: Headers (the same but different for each section)
    ... The problem with putting a macro in a document is not that it ... "Jay Freedman" wrote: ... By doing it this way my users will still have to go into the header ... Now you can put the StyleRef for Heading 7 in the appendix ...
    (microsoft.public.word.docmanagement)
  • Re: Getting MSW to convert txt to doc in vba
    ... up having a .txt extension. ... It retains its header and footer info implanted ... I want to run a macro that adds headers and footers to each ...
    (microsoft.public.word.vba.customization)
  • Re: Trouble with First Page Different in a Word Document Macro
    ... landscape page, run the macro and it works by ... removing the first page header from the page you are on. ... on there is a footer with a page number and smaller logo. ...
    (microsoft.public.word.vba.general)