diff options
author | Jesper Juhl <jj@chaosbits.net> | 2011-06-20 12:13:10 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-06-21 16:03:17 -0700 |
commit | dec17b74516bb780de75b41e7cfa0072df16bb82 (patch) | |
tree | 7f4aff0fb0f3f95dcbb20c9f2afe68dfeaf36fea /net/ipv4/gre.c | |
parent | 3b182d7d4287f38711f70d58d68cf2a34e582992 (diff) | |
download | linux-3.10-dec17b74516bb780de75b41e7cfa0072df16bb82.tar.gz linux-3.10-dec17b74516bb780de75b41e7cfa0072df16bb82.tar.bz2 linux-3.10-dec17b74516bb780de75b41e7cfa0072df16bb82.zip |
Remove redundant linux/version.h includes from net/
It was suggested by "make versioncheck" that the follwing includes of
linux/version.h are redundant:
/home/jj/src/linux-2.6/net/caif/caif_dev.c: 14 linux/version.h not needed.
/home/jj/src/linux-2.6/net/caif/chnl_net.c: 10 linux/version.h not needed.
/home/jj/src/linux-2.6/net/ipv4/gre.c: 19 linux/version.h not needed.
/home/jj/src/linux-2.6/net/netfilter/ipset/ip_set_core.c: 20 linux/version.h not needed.
/home/jj/src/linux-2.6/net/netfilter/xt_set.c: 16 linux/version.h not needed.
and it seems that it is right.
Beyond manually inspecting the source files I also did a few build
tests with various configs to confirm that including the header in
those files is indeed not needed.
Here's a patch to remove the pointless includes.
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Acked-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/gre.c')
-rw-r--r-- | net/ipv4/gre.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/gre.c b/net/ipv4/gre.c index c6933f2ea31..9dbe10875fb 100644 --- a/net/ipv4/gre.c +++ b/net/ipv4/gre.c @@ -16,7 +16,6 @@ #include <linux/skbuff.h> #include <linux/in.h> #include <linux/netdevice.h> -#include <linux/version.h> #include <linux/spinlock.h> #include <net/protocol.h> #include <net/gre.h> |