diff options
author | Patrick McHardy <kaber@trash.net> | 2006-01-09 19:43:13 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-01-10 15:54:29 -0500 |
commit | bb94aa169eaa6e713a429370d37388722f08666f (patch) | |
tree | fefb35f0c42d6e434c6b8ec627a9d715027e7ea2 /net/ipv4 | |
parent | d3f4a687f683f536506d0aa6b22e6cb3e79639ce (diff) |
[NETFILTER]: net/ipv[46]/netfilter.c cleanups
Don't wrap entire file in #ifdef CONFIG_NETFILTER, remove a few
unneccessary includes.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/Makefile | 4 | ||||
-rw-r--r-- | net/ipv4/netfilter.c | 10 |
2 files changed, 2 insertions, 12 deletions
diff --git a/net/ipv4/Makefile b/net/ipv4/Makefile index c54edd76de09..35e5f5999092 100644 --- a/net/ipv4/Makefile +++ b/net/ipv4/Makefile | |||
@@ -9,7 +9,7 @@ obj-y := route.o inetpeer.o protocol.o \ | |||
9 | tcp.o tcp_input.o tcp_output.o tcp_timer.o tcp_ipv4.o \ | 9 | tcp.o tcp_input.o tcp_output.o tcp_timer.o tcp_ipv4.o \ |
10 | tcp_minisocks.o tcp_cong.o \ | 10 | tcp_minisocks.o tcp_cong.o \ |
11 | datagram.o raw.o udp.o arp.o icmp.o devinet.o af_inet.o igmp.o \ | 11 | datagram.o raw.o udp.o arp.o icmp.o devinet.o af_inet.o igmp.o \ |
12 | sysctl_net_ipv4.o fib_frontend.o fib_semantics.o netfilter.o | 12 | sysctl_net_ipv4.o fib_frontend.o fib_semantics.o |
13 | 13 | ||
14 | obj-$(CONFIG_IP_FIB_HASH) += fib_hash.o | 14 | obj-$(CONFIG_IP_FIB_HASH) += fib_hash.o |
15 | obj-$(CONFIG_IP_FIB_TRIE) += fib_trie.o | 15 | obj-$(CONFIG_IP_FIB_TRIE) += fib_trie.o |
@@ -28,7 +28,7 @@ obj-$(CONFIG_IP_ROUTE_MULTIPATH_RR) += multipath_rr.o | |||
28 | obj-$(CONFIG_IP_ROUTE_MULTIPATH_RANDOM) += multipath_random.o | 28 | obj-$(CONFIG_IP_ROUTE_MULTIPATH_RANDOM) += multipath_random.o |
29 | obj-$(CONFIG_IP_ROUTE_MULTIPATH_WRANDOM) += multipath_wrandom.o | 29 | obj-$(CONFIG_IP_ROUTE_MULTIPATH_WRANDOM) += multipath_wrandom.o |
30 | obj-$(CONFIG_IP_ROUTE_MULTIPATH_DRR) += multipath_drr.o | 30 | obj-$(CONFIG_IP_ROUTE_MULTIPATH_DRR) += multipath_drr.o |
31 | obj-$(CONFIG_NETFILTER) += netfilter/ | 31 | obj-$(CONFIG_NETFILTER) += netfilter.o netfilter/ |
32 | obj-$(CONFIG_IP_VS) += ipvs/ | 32 | obj-$(CONFIG_IP_VS) += ipvs/ |
33 | obj-$(CONFIG_INET_DIAG) += inet_diag.o | 33 | obj-$(CONFIG_INET_DIAG) += inet_diag.o |
34 | obj-$(CONFIG_IP_ROUTE_MULTIPATH_CACHED) += multipath.o | 34 | obj-$(CONFIG_IP_ROUTE_MULTIPATH_CACHED) += multipath.o |
diff --git a/net/ipv4/netfilter.c b/net/ipv4/netfilter.c index 3321092b0914..52a3d7c57907 100644 --- a/net/ipv4/netfilter.c +++ b/net/ipv4/netfilter.c | |||
@@ -1,16 +1,8 @@ | |||
1 | /* IPv4 specific functions of netfilter core */ | 1 | /* IPv4 specific functions of netfilter core */ |
2 | |||
3 | #include <linux/config.h> | ||
4 | #ifdef CONFIG_NETFILTER | ||
5 | |||
6 | #include <linux/kernel.h> | 2 | #include <linux/kernel.h> |
7 | #include <linux/netfilter.h> | 3 | #include <linux/netfilter.h> |
8 | #include <linux/netfilter_ipv4.h> | 4 | #include <linux/netfilter_ipv4.h> |
9 | |||
10 | #include <linux/ip.h> | 5 | #include <linux/ip.h> |
11 | #include <linux/tcp.h> | ||
12 | #include <linux/udp.h> | ||
13 | #include <linux/icmp.h> | ||
14 | #include <net/route.h> | 6 | #include <net/route.h> |
15 | #include <net/xfrm.h> | 7 | #include <net/xfrm.h> |
16 | #include <net/ip.h> | 8 | #include <net/ip.h> |
@@ -146,5 +138,3 @@ static void fini(void) | |||
146 | 138 | ||
147 | module_init(init); | 139 | module_init(init); |
148 | module_exit(fini); | 140 | module_exit(fini); |
149 | |||
150 | #endif /* CONFIG_NETFILTER */ | ||