Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp332443ybi; Fri, 31 May 2019 02:08:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxzka0Tz0WwJhlsnvatop8P+oBYBxh4dkb7Y1nJk+LjxVRVYaZEYK8nt793s7FTGlJvbHSi X-Received: by 2002:a63:e603:: with SMTP id g3mr8009311pgh.167.1559293723572; Fri, 31 May 2019 02:08:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559293723; cv=none; d=google.com; s=arc-20160816; b=TQW0n5UTdBCawN/Jy7oMgD6HJjrVdPAGw0du2vgFPFa/iXZhhnJ+Rbj2B0rvgdEyg2 GCCinaInqVy9eKyFVaFqHJC8K1ftW4n4drbOU25PKh0vvAEegFQ33xxakjoylgzl9b5l Ya+AATywRhYXoD5OmGmbLy4jRDYvCNjXpgx06rV+tzOWMy3GNh5QQdj+1KYcaQruvqQ+ ZwixosHzWo1lbvfW8cwGSw82Ejmpc5uAkNSCcyRW/KjOi6KvXbHgZlJx4mx9nXFztXOF ZOQqF6UVqtKl4tNLXNOOYhvNdamIaF9UFmD/2+cpSD9lQRQGGPQ7Muez+exACoDLXDG0 rwWQ== 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=pN5qjnc5kCUzAB+5HX01e0sFOrEaOUKiW7Pa7Hse8xo=; b=UD/dtO9dYAB326StesWFIglaN/PQc/V5tFcj5xDbiIkizx78E2InIAA+8DUBhPcifY unvgdyLhGC4ygYUKltKmiFpHnVHWszDuJzbMfIR8TNSFToLHs20N01HQWBG34F8nlku5 yFwsTBs8/jgoCIsHnI4/CvAAOgcDskD+aSgBeWkkVgDwIDiVDa19E/yIrmBR8IEdnkNB wIxRDHgJm6hek4N/Ybi/1AfxpkdHpeXIWJDv2c7Ddk4tznVo+WhUhtrNKew2DFmYCsAl KMrhzoFDXqtXpCl0fKHnmXF4Bo5+2+DHmu06JR7gtDJSugh/R2BHFtJnj4NbQlvXHiz3 0HXg== 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 v2si4833943pjk.105.2019.05.31.02.08.25; Fri, 31 May 2019 02:08:43 -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 S1727108AbfEaJF5 (ORCPT + 99 others); Fri, 31 May 2019 05:05:57 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:17634 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726768AbfEaJF5 (ORCPT ); Fri, 31 May 2019 05:05:57 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id A8B726336D0F26F8ECF0; Fri, 31 May 2019 17:05:54 +0800 (CST) Received: from [127.0.0.1] (10.133.213.239) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.439.0; Fri, 31 May 2019 17:05:52 +0800 Subject: Re: [PATCH net-next] netfilter: nf_conntrack_bridge: Fix build error without IPV6 To: Pablo Neira Ayuso References: <20190531024643.3840-1-yuehaibing@huawei.com> <19095cab-fbc5-f200-a40c-cb4c1a12fbc6@huawei.com> <20190531080257.62mfimdlwuv42bk3@salvia> CC: , , , , , From: Yuehaibing Message-ID: Date: Fri, 31 May 2019 17:05:51 +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: <20190531080257.62mfimdlwuv42bk3@salvia> 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 On 2019/5/31 16:02, Pablo Neira Ayuso wrote: > On Fri, May 31, 2019 at 11:06:49AM +0800, Yuehaibing wrote: >> +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); >>> + > > This is already defined in: > > include/net/netfilter/ipv6/nf_defrag_ipv6.h > > Probably this? Yes, this works for me. >