diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2007-12-05 04:43:25 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:56:29 -0500 |
commit | 4a61b586cd7eaab6242eca58e8e6e3c8ebd88bd2 (patch) | |
tree | 5b21b765f53bd4d2e652d8baadffc48b6f3b37d6 /net | |
parent | 08913681e484f3f0db949dd0809012e089846216 (diff) |
[IPV6]: Make the ipv6/sysctl_net_ipv6.c compilation cleaner
Since this file is entirely enclosed with the
#ifdef CONFIG_SYSCTL/#endif pair, it's OK to move this
CONFIG_ into a Makefile.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/Makefile | 4 | ||||
-rw-r--r-- | net/ipv6/sysctl_net_ipv6.c | 7 |
2 files changed, 2 insertions, 9 deletions
diff --git a/net/ipv6/Makefile b/net/ipv6/Makefile index 5ffa98003058..24f3aa0f2a35 100644 --- a/net/ipv6/Makefile +++ b/net/ipv6/Makefile | |||
@@ -8,9 +8,9 @@ ipv6-objs := af_inet6.o anycast.o ip6_output.o ip6_input.o addrconf.o \ | |||
8 | addrlabel.o \ | 8 | addrlabel.o \ |
9 | route.o ip6_fib.o ipv6_sockglue.o ndisc.o udp.o udplite.o \ | 9 | route.o ip6_fib.o ipv6_sockglue.o ndisc.o udp.o udplite.o \ |
10 | raw.o protocol.o icmp.o mcast.o reassembly.o tcp_ipv6.o \ | 10 | raw.o protocol.o icmp.o mcast.o reassembly.o tcp_ipv6.o \ |
11 | exthdrs.o sysctl_net_ipv6.o datagram.o \ | 11 | exthdrs.o datagram.o ip6_flowlabel.o inet6_connection_sock.o |
12 | ip6_flowlabel.o inet6_connection_sock.o | ||
13 | 12 | ||
13 | ipv6-$(CONFIG_SYSCTL) = sysctl_net_ipv6.o | ||
14 | ipv6-$(CONFIG_XFRM) += xfrm6_policy.o xfrm6_state.o xfrm6_input.o \ | 14 | ipv6-$(CONFIG_XFRM) += xfrm6_policy.o xfrm6_state.o xfrm6_input.o \ |
15 | xfrm6_output.o | 15 | xfrm6_output.o |
16 | ipv6-$(CONFIG_NETFILTER) += netfilter.o | 16 | ipv6-$(CONFIG_NETFILTER) += netfilter.o |
diff --git a/net/ipv6/sysctl_net_ipv6.c b/net/ipv6/sysctl_net_ipv6.c index 68bb2548e469..227efa726acd 100644 --- a/net/ipv6/sysctl_net_ipv6.c +++ b/net/ipv6/sysctl_net_ipv6.c | |||
@@ -14,8 +14,6 @@ | |||
14 | #include <net/addrconf.h> | 14 | #include <net/addrconf.h> |
15 | #include <net/inet_frag.h> | 15 | #include <net/inet_frag.h> |
16 | 16 | ||
17 | #ifdef CONFIG_SYSCTL | ||
18 | |||
19 | static ctl_table ipv6_table[] = { | 17 | static ctl_table ipv6_table[] = { |
20 | { | 18 | { |
21 | .ctl_name = NET_IPV6_ROUTE, | 19 | .ctl_name = NET_IPV6_ROUTE, |
@@ -115,8 +113,3 @@ void ipv6_sysctl_unregister(void) | |||
115 | { | 113 | { |
116 | unregister_sysctl_table(ipv6_sysctl_header); | 114 | unregister_sysctl_table(ipv6_sysctl_header); |
117 | } | 115 | } |
118 | |||
119 | #endif /* CONFIG_SYSCTL */ | ||
120 | |||
121 | |||
122 | |||