Skip to content

Commit 4a61b58

Browse files
xemuldavem330
authored andcommitted
[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>
1 parent 0891368 commit 4a61b58

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

‎net/ipv6/Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ ipv6-objs := af_inet6.o anycast.o ip6_output.o ip6_input.o addrconf.o \
88
addrlabel.o \
99
route.o ip6_fib.o ipv6_sockglue.o ndisc.o udp.o udplite.o \
1010
raw.o protocol.o icmp.o mcast.o reassembly.o tcp_ipv6.o \
11-
exthdrs.o sysctl_net_ipv6.o datagram.o \
12-
ip6_flowlabel.o inet6_connection_sock.o
11+
exthdrs.o datagram.o ip6_flowlabel.o inet6_connection_sock.o
1312

13+
ipv6-$(CONFIG_SYSCTL) = sysctl_net_ipv6.o
1414
ipv6-$(CONFIG_XFRM) += xfrm6_policy.o xfrm6_state.o xfrm6_input.o \
1515
xfrm6_output.o
1616
ipv6-$(CONFIG_NETFILTER) += netfilter.o

‎net/ipv6/sysctl_net_ipv6.c‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
#include <net/addrconf.h>
1515
#include <net/inet_frag.h>
1616

17-
#ifdef CONFIG_SYSCTL
18-
1917
static ctl_table ipv6_table[] = {
2018
{
2119
.ctl_name = NET_IPV6_ROUTE,
@@ -115,8 +113,3 @@ void ipv6_sysctl_unregister(void)
115113
{
116114
unregister_sysctl_table(ipv6_sysctl_header);
117115
}
118-
119-
#endif /* CONFIG_SYSCTL */
120-
121-
122-

0 commit comments

Comments
 (0)