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, USER_AGENT_GIT 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 EC7F8C28CC0 for ; Fri, 31 May 2019 02:47:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CB17E26242 for ; Fri, 31 May 2019 02:47:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726658AbfEaCr7 (ORCPT ); Thu, 30 May 2019 22:47:59 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:45926 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726512AbfEaCr6 (ORCPT ); Thu, 30 May 2019 22:47:58 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 682805B63DFC80789401; Fri, 31 May 2019 10:47:55 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.439.0; Fri, 31 May 2019 10:47:46 +0800 From: YueHaibing To: , , CC: , , , YueHaibing Subject: [PATCH net-next] netfilter: nf_conntrack_bridge: Fix build error without IPV6 Date: Fri, 31 May 2019 10:46:43 +0800 Message-ID: <20190531024643.3840-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain 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 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) { -- 2.7.4