From: wenxu Date: Sun, 2 Jun 2019 13:49:26 +0000 (+0800) Subject: netfilter: ipv6: Fix undefined symbol nf_ct_frag6_gather X-Git-Tag: v5.15~5991^2~153^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=16e6427c88c5b7e7b6612f6c286d5f71d659e5be;p=platform%2Fkernel%2Flinux-starfive.git netfilter: ipv6: Fix undefined symbol nf_ct_frag6_gather CONFIG_NETFILTER=m and CONFIG_NF_DEFRAG_IPV6 is not set ERROR: "nf_ct_frag6_gather" [net/ipv6/ipv6.ko] undefined! Fixes: c9bb6165a16e ("netfilter: nf_conntrack_bridge: fix CONFIG_IPV6=y") Reported-by: kbuild test robot Signed-off-by: wenxu Signed-off-by: Pablo Neira Ayuso --- diff --git a/net/ipv6/netfilter.c b/net/ipv6/netfilter.c index d9673e1..86048dc 100644 --- a/net/ipv6/netfilter.c +++ b/net/ipv6/netfilter.c @@ -238,8 +238,10 @@ static const struct nf_ipv6_ops ipv6ops = { .route_input = ip6_route_input, .fragment = ip6_fragment, .reroute = nf_ip6_reroute, -#if IS_MODULE(CONFIG_IPV6) +#if IS_MODULE(CONFIG_IPV6) && IS_ENABLED(CONFIG_NF_DEFRAG_IPV6) .br_defrag = nf_ct_frag6_gather, +#endif +#if IS_MODULE(CONFIG_IPV6) .br_fragment = br_ip6_fragment, #endif };