netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.6.5] (1/9) bridge - include file cleanup
@ 2004-04-13 22:16 Stephen Hemminger
  2004-04-13 22:18 ` [PATCH 2.6.5] (2/9) bridge - rmmod race Stephen Hemminger
                   ` (9 more replies)
  0 siblings, 10 replies; 20+ messages in thread
From: Stephen Hemminger @ 2004-04-13 22:16 UTC (permalink / raw)
  To: David S. Miller; +Cc: bridge, netdev

Cleanup some of the include file's in the bridge code.
* if_bridge.h defines net_bridge, but not needed as part of the API.
* get rid of places that include if_bridge.h and uaccess.h but don't
  actually do API work.


diff -Nru a/include/linux/if_bridge.h b/include/linux/if_bridge.h
--- a/include/linux/if_bridge.h	Tue Apr 13 14:44:58 2004
+++ b/include/linux/if_bridge.h	Tue Apr 13 14:44:58 2004
@@ -99,9 +99,6 @@
 
 #include <linux/netdevice.h>
 
-struct net_bridge;
-struct net_bridge_port;
-
 extern void brioctl_set(int (*ioctl_hook)(unsigned long));
 extern int (*br_handle_frame_hook)(struct sk_buff *skb);
 extern int (*br_should_route_hook)(struct sk_buff **pskb);
diff -Nru a/net/bridge/br.c b/net/bridge/br.c
--- a/net/bridge/br.c	Tue Apr 13 14:44:58 2004
+++ b/net/bridge/br.c	Tue Apr 13 14:44:58 2004
@@ -20,8 +20,7 @@
 #include <linux/netdevice.h>
 #include <linux/etherdevice.h>
 #include <linux/init.h>
-#include <linux/if_bridge.h>
-#include <asm/uaccess.h>
+
 #include "br_private.h"
 
 #if defined(CONFIG_ATM_LANE) || defined(CONFIG_ATM_LANE_MODULE)
diff -Nru a/net/bridge/br_device.c b/net/bridge/br_device.c
--- a/net/bridge/br_device.c	Tue Apr 13 14:44:58 2004
+++ b/net/bridge/br_device.c	Tue Apr 13 14:44:58 2004
@@ -15,7 +15,6 @@
 
 #include <linux/kernel.h>
 #include <linux/netdevice.h>
-#include <linux/if_bridge.h>
 #include <linux/module.h>
 #include <asm/uaccess.h>
 #include "br_private.h"
diff -Nru a/net/bridge/br_forward.c b/net/bridge/br_forward.c
--- a/net/bridge/br_forward.c	Tue Apr 13 14:44:58 2004
+++ b/net/bridge/br_forward.c	Tue Apr 13 14:44:58 2004
@@ -15,9 +15,7 @@
 
 #include <linux/kernel.h>
 #include <linux/netdevice.h>
-#include <linux/inetdevice.h>
 #include <linux/skbuff.h>
-#include <linux/if_bridge.h>
 #include <linux/netfilter_bridge.h>
 #include "br_private.h"
 
diff -Nru a/net/bridge/br_if.c b/net/bridge/br_if.c
--- a/net/bridge/br_if.c	Tue Apr 13 14:44:58 2004
+++ b/net/bridge/br_if.c	Tue Apr 13 14:44:58 2004
@@ -15,13 +15,11 @@
 
 #include <linux/kernel.h>
 #include <linux/if_arp.h>
-#include <linux/if_bridge.h>
-#include <linux/inetdevice.h>
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/rtnetlink.h>
 #include <net/sock.h>
-#include <asm/uaccess.h>
+
 #include "br_private.h"
 
 /* Limited to 256 ports because of STP protocol pdu */
diff -Nru a/net/bridge/br_input.c b/net/bridge/br_input.c
--- a/net/bridge/br_input.c	Tue Apr 13 14:44:58 2004
+++ b/net/bridge/br_input.c	Tue Apr 13 14:44:58 2004
@@ -16,7 +16,6 @@
 #include <linux/kernel.h>
 #include <linux/netdevice.h>
 #include <linux/etherdevice.h>
-#include <linux/if_bridge.h>
 #include <linux/netfilter_bridge.h>
 #include "br_private.h"
 
diff -Nru a/net/bridge/br_ioctl.c b/net/bridge/br_ioctl.c
--- a/net/bridge/br_ioctl.c	Tue Apr 13 14:44:58 2004
+++ b/net/bridge/br_ioctl.c	Tue Apr 13 14:44:58 2004
@@ -15,7 +15,7 @@
 
 #include <linux/kernel.h>
 #include <linux/if_bridge.h>
-#include <linux/inetdevice.h>
+#include <linux/netdevice.h>
 #include <asm/uaccess.h>
 #include "br_private.h"
 
diff -Nru a/net/bridge/br_notify.c b/net/bridge/br_notify.c
--- a/net/bridge/br_notify.c	Tue Apr 13 14:44:58 2004
+++ b/net/bridge/br_notify.c	Tue Apr 13 14:44:58 2004
@@ -14,7 +14,7 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/if_bridge.h>
+
 #include "br_private.h"
 
 static int br_device_event(struct notifier_block *unused, unsigned long event, void *ptr);
diff -Nru a/net/bridge/br_stp.c b/net/bridge/br_stp.c
--- a/net/bridge/br_stp.c	Tue Apr 13 14:44:58 2004
+++ b/net/bridge/br_stp.c	Tue Apr 13 14:44:58 2004
@@ -13,9 +13,8 @@
  *	2 of the License, or (at your option) any later version.
  */
 #include <linux/kernel.h>
-#include <linux/if_bridge.h>
 #include <linux/smp_lock.h>
-#include <asm/uaccess.h>
+
 #include "br_private.h"
 #include "br_private_stp.h"
 
diff -Nru a/net/bridge/br_stp_bpdu.c b/net/bridge/br_stp_bpdu.c
--- a/net/bridge/br_stp_bpdu.c	Tue Apr 13 14:44:58 2004
+++ b/net/bridge/br_stp_bpdu.c	Tue Apr 13 14:44:58 2004
@@ -14,9 +14,8 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/if_ether.h>
-#include <linux/if_bridge.h>
 #include <linux/netfilter_bridge.h>
+
 #include "br_private.h"
 #include "br_private_stp.h"
 
diff -Nru a/net/bridge/br_stp_if.c b/net/bridge/br_stp_if.c
--- a/net/bridge/br_stp_if.c	Tue Apr 13 14:44:58 2004
+++ b/net/bridge/br_stp_if.c	Tue Apr 13 14:44:58 2004
@@ -14,9 +14,8 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/if_bridge.h>
 #include <linux/smp_lock.h>
-#include <asm/uaccess.h>
+
 #include "br_private.h"
 #include "br_private_stp.h"
 
diff -Nru a/net/bridge/br_stp_timer.c b/net/bridge/br_stp_timer.c
--- a/net/bridge/br_stp_timer.c	Tue Apr 13 14:44:58 2004
+++ b/net/bridge/br_stp_timer.c	Tue Apr 13 14:44:58 2004
@@ -14,9 +14,8 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/if_bridge.h>
 #include <linux/smp_lock.h>
-#include <asm/uaccess.h>
+
 #include "br_private.h"
 #include "br_private_stp.h"
 

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

end of thread, other threads:[~2004-04-16 21:24 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-13 22:16 [PATCH 2.6.5] (1/9) bridge - include file cleanup Stephen Hemminger
2004-04-13 22:18 ` [PATCH 2.6.5] (2/9) bridge - rmmod race Stephen Hemminger
2004-04-16 21:13   ` David S. Miller
2004-04-13 22:20 ` [PATCH 2.6.5] (3/9) bridge - jiffies_to_clock Stephen Hemminger
2004-04-16 21:14   ` David S. Miller
2004-04-13 22:24 ` [PATCH 2.6.5] (4/9) bridge - use ethtool to get port speed Stephen Hemminger
2004-04-16 21:15   ` David S. Miller
2004-04-13 22:26 ` [PATCH 2.6.5] (5/9) bridge - multicast address as const Stephen Hemminger
2004-04-16 21:16   ` David S. Miller
2004-04-13 22:28 ` [PATCH 2.6.5] (6/9) bridge - forwarding database changes Stephen Hemminger
2004-04-16 21:21   ` David S. Miller
2004-04-13 22:30 ` [PATCH 2.6.5] (7/9) bridge - STP unsigned fields Stephen Hemminger
2004-04-16 21:22   ` David S. Miller
2004-04-13 22:33 ` [PATCH 2.6.5] (8/9) bridge - support lots of 1k ports Stephen Hemminger
2004-04-16 21:22   ` David S. Miller
2004-04-13 22:34 ` [PATCH 2.6.5] (9/9) bridge - fdb cache alloc Stephen Hemminger
2004-04-16 21:23   ` David S. Miller
2004-04-14 19:04 ` [PATCH 2.6.5] bridge - replace CLEAR_BITMAP with memset Stephen Hemminger
2004-04-16 21:24   ` David S. Miller
2004-04-16 21:12 ` [PATCH 2.6.5] (1/9) bridge - include file cleanup David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).