diff options
author | Andy Zhou <azhou@nicira.com> | 2014-09-19 21:02:53 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-19 22:05:28 -0400 |
commit | 6d967f8789249628a6388a3a4314c5fef423f36a (patch) | |
tree | b51fb98b60ff90e73ac190e61401f319327b82e6 | |
parent | 6c62f606b0db9f5ee47fbc20a5fc8ddcc803841a (diff) |
udp_tunnel: Only build ip6_udp_tunnel.c when IPV6 is selected
Functions supplied in ip6_udp_tunnel.c are only needed when IPV6 is
selected. When IPV6 is not selected, those functions are stubbed out
in udp_tunnel.h.
==================================================================
net/ipv6/ip6_udp_tunnel.c:15:5: error: redefinition of 'udp_sock_create6'
int udp_sock_create6(struct net *net, struct udp_port_cfg *cfg,
In file included from net/ipv6/ip6_udp_tunnel.c:9:0:
include/net/udp_tunnel.h:36:19: note: previous definition of 'udp_sock_create6' was here
static inline int udp_sock_create6(struct net *net, struct udp_port_cfg *cfg,
==================================================================
Fixes: fd384412e udp_tunnel: Seperate ipv6 functions into its own file
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Andy Zhou <azhou@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv6/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/ipv6/Makefile b/net/ipv6/Makefile index 45f830e5f820..2e8c06108ab9 100644 --- a/net/ipv6/Makefile +++ b/net/ipv6/Makefile | |||
@@ -35,7 +35,6 @@ obj-$(CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION) += xfrm6_mode_ro.o | |||
35 | obj-$(CONFIG_INET6_XFRM_MODE_BEET) += xfrm6_mode_beet.o | 35 | obj-$(CONFIG_INET6_XFRM_MODE_BEET) += xfrm6_mode_beet.o |
36 | obj-$(CONFIG_IPV6_MIP6) += mip6.o | 36 | obj-$(CONFIG_IPV6_MIP6) += mip6.o |
37 | obj-$(CONFIG_NETFILTER) += netfilter/ | 37 | obj-$(CONFIG_NETFILTER) += netfilter/ |
38 | obj-$(CONFIG_NET_UDP_TUNNEL) += ip6_udp_tunnel.o | ||
39 | 38 | ||
40 | obj-$(CONFIG_IPV6_VTI) += ip6_vti.o | 39 | obj-$(CONFIG_IPV6_VTI) += ip6_vti.o |
41 | obj-$(CONFIG_IPV6_SIT) += sit.o | 40 | obj-$(CONFIG_IPV6_SIT) += sit.o |
@@ -46,3 +45,7 @@ obj-y += addrconf_core.o exthdrs_core.o ip6_checksum.o ip6_icmp.o | |||
46 | obj-$(CONFIG_INET) += output_core.o protocol.o $(ipv6-offload) | 45 | obj-$(CONFIG_INET) += output_core.o protocol.o $(ipv6-offload) |
47 | 46 | ||
48 | obj-$(subst m,y,$(CONFIG_IPV6)) += inet6_hashtables.o | 47 | obj-$(subst m,y,$(CONFIG_IPV6)) += inet6_hashtables.o |
48 | |||
49 | ifneq ($(CONFIG_IPV6),) | ||
50 | obj-$(CONFIG_NET_UDP_TUNNEL) += ip6_udp_tunnel.o | ||
51 | endif | ||