Skip to contentSkip to conversation

Cleanup direct calls into IP stack

PATCH In review Ralf Baechle DL5RB 1 participant 1 message Aug 24, 2005 Networking

lore
Share & tools
lore
#0 lore raw

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.

 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
Index: linux-cvs/net/ax25/ax25_ds_in.c
===================================================================
@@ -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
Index: linux-cvs/net/ax25/ax25_std_in.c
===================================================================
@@ -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
Index: linux-cvs/net/netrom/nr_in.c
===================================================================
@@ -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
Index: linux-cvs/net/rose/rose_in.c
===================================================================
@@ -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>