Cleanup direct calls into IP stack
PATCH 2/3 Cleanup direct calls into IP stack
All these are claiming to include <net/ip.h> to get ip_rcv() but in fact don't need the header at all, so away with the inclusion.
Signed-off-by Ralf Baechle DL5RB <[email protected]>
net/ax25/ax25_ds_in.c | 1 - net/ax25/ax25_std_in.c | 1 - net/netrom/nr_in.c | 1 - net/rose/rose_in.c | 1 - 4 files changed, 4 deletions(-)
net/ax25/ax25_ds_in.c +0 -1
@@ -22,7 +22,6 @@#include <linux/netdevice.h> #include <linux/skbuff.h> #include <net/sock.h> -#include <net/ip.h> /* For ip_rcv */ #include <net/tcp.h> #include <asm/uaccess.h> #include <asm/system.h>
net/ax25/ax25_std_in.c +0 -1
@@ -29,7 +29,6 @@#include <linux/netdevice.h> #include <linux/skbuff.h> #include <net/sock.h> -#include <net/ip.h> /* For ip_rcv */ #include <net/tcp.h> #include <asm/uaccess.h> #include <asm/system.h>
net/netrom/nr_in.c +0 -1
@@ -23,7 +23,6 @@#include <linux/skbuff.h> #include <net/sock.h> #include <net/tcp.h> -#include <net/ip.h> /* For ip_rcv */ #include <asm/uaccess.h> #include <asm/system.h> #include <linux/fcntl.h>
net/rose/rose_in.c +0 -1
@@ -26,7 +26,6 @@#include <linux/netdevice.h> #include <linux/skbuff.h> #include <net/sock.h> -#include <net/ip.h> /* For ip_rcv */ #include <net/tcp.h> #include <asm/system.h> #include <linux/fcntl.h>