From: Weiping Pan <panweiping3@gmail.com>
To: netdev@vger.kernel.org
Cc: Weiping Pan <panweiping3@gmail.com>
Subject: [PATCH net-next 2/2] vlan:remove duplicate <linux/if_vlan.h>
Date: Thu, 28 Jul 2011 16:37:40 +0800 [thread overview]
Message-ID: <e25146efacad2adc0c0f765662b8577aadc82ff3.1311841820.git.panweiping3@gmail.com> (raw)
In-Reply-To: <cover.1311841820.git.panweiping3@gmail.com>
In-Reply-To: <cover.1311841820.git.panweiping3@gmail.com>
As net/8021q/vlan.h already includes <linux/if_vlan.h>,
so other files that includes vlan.h need not to include it.
Signed-off-by: Weiping Pan <panweiping3@gmail.com>
---
net/8021q/vlan.c | 1 -
net/8021q/vlan_core.c | 1 -
net/8021q/vlan_dev.c | 1 -
net/8021q/vlan_gvrp.c | 1 -
net/8021q/vlan_netlink.c | 1 -
net/8021q/vlanproc.c | 1 -
6 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c
index 8970ba1..60030b6 100644
--- a/net/8021q/vlan.c
+++ b/net/8021q/vlan.c
@@ -36,7 +36,6 @@
#include <net/netns/generic.h>
#include <asm/uaccess.h>
-#include <linux/if_vlan.h>
#include "vlan.h"
#include "vlanproc.h"
diff --git a/net/8021q/vlan_core.c b/net/8021q/vlan_core.c
index 5f27f8e..66190dc 100644
--- a/net/8021q/vlan_core.c
+++ b/net/8021q/vlan_core.c
@@ -1,6 +1,5 @@
#include <linux/skbuff.h>
#include <linux/netdevice.h>
-#include <linux/if_vlan.h>
#include <linux/netpoll.h>
#include "vlan.h"
diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c
index 934e221..1793ffb 100644
--- a/net/8021q/vlan_dev.c
+++ b/net/8021q/vlan_dev.c
@@ -32,7 +32,6 @@
#include "vlan.h"
#include "vlanproc.h"
-#include <linux/if_vlan.h>
/*
* Rebuild the Ethernet MAC header. This is called after an ARP
diff --git a/net/8021q/vlan_gvrp.c b/net/8021q/vlan_gvrp.c
index 061cece..6153c72 100644
--- a/net/8021q/vlan_gvrp.c
+++ b/net/8021q/vlan_gvrp.c
@@ -8,7 +8,6 @@
* version 2 as published by the Free Software Foundation.
*/
#include <linux/types.h>
-#include <linux/if_vlan.h>
#include <net/garp.h>
#include "vlan.h"
diff --git a/net/8021q/vlan_netlink.c b/net/8021q/vlan_netlink.c
index be9a5c1..687ee4f 100644
--- a/net/8021q/vlan_netlink.c
+++ b/net/8021q/vlan_netlink.c
@@ -10,7 +10,6 @@
#include <linux/kernel.h>
#include <linux/netdevice.h>
-#include <linux/if_vlan.h>
#include <net/net_namespace.h>
#include <net/netlink.h>
#include <net/rtnetlink.h>
diff --git a/net/8021q/vlanproc.c b/net/8021q/vlanproc.c
index d34b6da..47c99c8 100644
--- a/net/8021q/vlanproc.c
+++ b/net/8021q/vlanproc.c
@@ -27,7 +27,6 @@
#include <linux/seq_file.h>
#include <linux/fs.h>
#include <linux/netdevice.h>
-#include <linux/if_vlan.h>
#include <net/net_namespace.h>
#include <net/netns/generic.h>
#include "vlanproc.h"
--
1.7.4.4
next prev parent reply other threads:[~2011-07-28 8:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-28 8:37 [PATCH net-next 0/2] vlan:remove duplicate <linux/if_vlan.h> Weiping Pan
2011-07-28 8:37 ` [PATCH net-next 1/2] stp:add netdevice.h into stp.h Weiping Pan
2011-07-28 8:37 ` Weiping Pan [this message]
2011-07-28 8:38 ` [PATCH net-next 0/2] vlan:remove duplicate <linux/if_vlan.h> David Miller
2011-07-28 8:48 ` WeipingPan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e25146efacad2adc0c0f765662b8577aadc82ff3.1311841820.git.panweiping3@gmail.com \
--to=panweiping3@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).