Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp44297ybi; Thu, 30 May 2019 20:08:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwM1iUz0n0a0CoAFrsGeZYg9SWV5hTOPmIH8iYMgj3tvDpBKW0zKJacsmUdonSHj9OWysSO X-Received: by 2002:a17:902:868c:: with SMTP id g12mr6984640plo.323.1559272104299; Thu, 30 May 2019 20:08:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559272104; cv=none; d=google.com; s=arc-20160816; b=XHiXzHI7DxRpt7Xsc0Bl4ME9mcsly4VLp9omqaw3NA5pjzXV0a5IQDHQjLHIzvVyCA f/eb4jyUmhF17Q/85Hn/ImRr7UPWFHjZts+SNZgIei349jNYPRb4CrbSlsCw78Asg5lW MxCmb2s811UItJ9NDKZu45osctxrQMfuScALaS9JqdkTfg4egG7eB/mv11EO/8wT1u2H C8bFQr9RVscG2tSuVnePhvZlHCLVzppqqL66Rgr/ArbzeTOGcd4QJe5aNSy+2VceuHlf azCioSwdGbTAN5Al+VOKeehOi/tl1uljVjlsprbkc5gYcW5ewOX8yr/0TrLW+wSrw9Qb Obzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=QnRbJ4zj5Y5OQ1Ua7cT7MDw5bP5kmPcuBodgMcwe8LM=; b=pMDBpmeYG5dIBEdLs3cl8ycsxORb5K2qRiS9nTm3tCPtLmPgFbWtKRpItlLz6xhLr2 gp6RjQTkSU5GKeVsCz9/ODP/tg68ctD9oue5+Vpf+FVowA80Sh+gAdd5j5B9bARoAGsY cM4dmVRmL5eiL0/9XuJmKd1ArS1pk3N7LMUKVCCsuup4TOS8AIpggOeA/rdXhSrO0esC zk//s9GuWts3xdwOoDaoTnIMIYnU4Fav3T9a+24z78NPv0NOlYPHbuCx5aA13gblXFPw SMGJ/SOl4UMSRf/IVQBh7uLuqgF1d5Nv2Ic2IbXoxFpk3/0EnctRxRbxzrISvtEyipWD 4dhQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j9si4622522pgp.328.2019.05.30.20.08.07; Thu, 30 May 2019 20:08:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726719AbfEaDG6 (ORCPT + 99 others); Thu, 30 May 2019 23:06:58 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:18060 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726418AbfEaDG6 (ORCPT ); Thu, 30 May 2019 23:06:58 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 633C8FFE307F46C5E2D8; Fri, 31 May 2019 11:06:55 +0800 (CST) Received: from [127.0.0.1] (10.133.213.239) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Fri, 31 May 2019 11:06:50 +0800 Subject: Re: [PATCH net-next] netfilter: nf_conntrack_bridge: Fix build error without IPV6 To: , , References: <20190531024643.3840-1-yuehaibing@huawei.com> CC: , , , From: Yuehaibing Message-ID: <19095cab-fbc5-f200-a40c-cb4c1a12fbc6@huawei.com> Date: Fri, 31 May 2019 11:06:49 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20190531024643.3840-1-yuehaibing@huawei.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +cc netdev On 2019/5/31 10:46, YueHaibing wrote: > Fix gcc build error while CONFIG_IPV6 is not set > > In file included from net/netfilter/core.c:19:0: > ./include/linux/netfilter_ipv6.h: In function 'nf_ipv6_br_defrag': > ./include/linux/netfilter_ipv6.h:110:9: error: implicit declaration of function 'nf_ct_frag6_gather' [-Werror=implicit-function-declaration] > > Reported-by: Hulk Robot > Fixes: 764dd163ac92 ("netfilter: nf_conntrack_bridge: add support for IPv6") > Signed-off-by: YueHaibing > --- > include/linux/netfilter_ipv6.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/linux/netfilter_ipv6.h b/include/linux/netfilter_ipv6.h > index a21b8c9..4ea97fd 100644 > --- a/include/linux/netfilter_ipv6.h > +++ b/include/linux/netfilter_ipv6.h > @@ -96,6 +96,8 @@ static inline int nf_ip6_route(struct net *net, struct dst_entry **dst, > #endif > } > > +int nf_ct_frag6_gather(struct net *net, struct sk_buff *skb, u32 user); > + > static inline int nf_ipv6_br_defrag(struct net *net, struct sk_buff *skb, > u32 user) > { >