From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A810C04AB6 for ; Fri, 31 May 2019 08:03:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 787F22654B for ; Fri, 31 May 2019 08:03:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726968AbfEaIDE (ORCPT ); Fri, 31 May 2019 04:03:04 -0400 Received: from mail.us.es ([193.147.175.20]:38998 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726158AbfEaIDD (ORCPT ); Fri, 31 May 2019 04:03:03 -0400 Received: from antivirus1-rhel7.int (unknown [192.168.2.11]) by mail.us.es (Postfix) with ESMTP id 98656BAE9B for ; Fri, 31 May 2019 10:03:01 +0200 (CEST) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id 3B680DA70B for ; Fri, 31 May 2019 10:03:01 +0200 (CEST) Received: by antivirus1-rhel7.int (Postfix, from userid 99) id 960CFDA7F1; Fri, 31 May 2019 10:03:00 +0200 (CEST) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id 21354DA705; Fri, 31 May 2019 10:02:58 +0200 (CEST) Received: from 192.168.1.97 (192.168.1.97) by antivirus1-rhel7.int (F-Secure/fsigk_smtp/550/antivirus1-rhel7.int); Fri, 31 May 2019 10:02:58 +0200 (CEST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/antivirus1-rhel7.int) Received: from us.es (sys.soleta.eu [212.170.55.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: 1984lsi) by entrada.int (Postfix) with ESMTPSA id E74284265A32; Fri, 31 May 2019 10:02:57 +0200 (CEST) Date: Fri, 31 May 2019 10:02:57 +0200 X-SMTPAUTHUS: auth mail.us.es From: Pablo Neira Ayuso To: Yuehaibing Cc: kadlec@blackhole.kfki.hu, fw@strlen.de, linux-kernel@vger.kernel.org, coreteam@netfilter.org, netfilter-devel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next] netfilter: nf_conntrack_bridge: Fix build error without IPV6 Message-ID: <20190531080257.62mfimdlwuv42bk3@salvia> References: <20190531024643.3840-1-yuehaibing@huawei.com> <19095cab-fbc5-f200-a40c-cb4c1a12fbc6@huawei.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="mledociainyopav3" Content-Disposition: inline In-Reply-To: <19095cab-fbc5-f200-a40c-cb4c1a12fbc6@huawei.com> User-Agent: NeoMutt/20170113 (1.7.2) X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --mledociainyopav3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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? --mledociainyopav3 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="x.patch" diff --git a/include/linux/netfilter_ipv6.h b/include/linux/netfilter_ipv6.h index a21b8c9623ee..3a3dc4b1f0e7 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 } +#include + static inline int nf_ipv6_br_defrag(struct net *net, struct sk_buff *skb, u32 user) { --mledociainyopav3--