]> granicus.if.org Git - ipset/commit
Remove redundant linux/version.h includes from net/
authorJesper Juhl <jj@chaosbits.net>
Mon, 5 Sep 2011 15:07:17 +0000 (17:07 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 5 Sep 2011 15:07:17 +0000 (17:07 +0200)
commit7eb8ca4961f5189ede9492b072bd517434c53c74
treef5ca01bbc0db88266f253f3a8c5b0ed584e82b9d
parent9c0d31cc1eb0a46b1756bd11f9194ddb4b38be0e
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>
kernel/net/netfilter/ipset/ip_set_core.c
kernel/net/netfilter/xt_set.c