Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751577AbeABKRE (ORCPT + 1 other); Tue, 2 Jan 2018 05:17:04 -0500 Received: from mout.kundenserver.de ([212.227.126.130]:56422 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750736AbeABKRD (ORCPT ); Tue, 2 Jan 2018 05:17:03 -0500 From: Arnd Bergmann To: Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal Cc: Arnd Bergmann , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, linux-kernel@vger.kernel.org Subject: [PATCH] netfilter: add nf_queue_entry forward declaration Date: Tue, 2 Jan 2018 11:16:23 +0100 Message-Id: <20180102101644.200962-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:nVfkOuDCCN7Er7PDrAK6YRtE6IC99g6B2yTL8OLfDCtouYt15dA YW+tWrqRk/M88CMRs767sb0DimGIflM+TZkrpDAjVVv4sMy6QxO584T6SSCzdWUAjfBIGbJ shgJzIS1/hP8oQDUM4Qoi45ZDuoOdGrZBMWF9OmPA9vKcsCRsPQOD82THYRCdJj3M7J+pxE 9rsgjhV0hIq37xc+TikKg== X-UI-Out-Filterresults: notjunk:1;V01:K0:Coie9gCXhs8=:NpCOgm+GTgM8/Hw8dXVc4c 3JF3Qit6DcDsB+zfH40qe8OFHQL2MIHyr99EC4TTH9udqinup4QNdjkpMWTvy0velDistRP2t eqEDjOxyb4rrsqPLLwVHDs5GDllRjaeewe6Krg11xkY38gsrw6s428XMTtfa3D+VDSOcYVAf1 HH1b3KRpf+j4fqdUFkzlpnsgZG51aiepFrbhyBsDkWwz6xuXyFuI3NzNFBBu5wveNYrHyyY2E 7pk4m0DBLXb0UXv7/IUWxzbsnekqrL+qVvno7jqC3/nywgsB8cmGH/1TtY0LH1A/3ZsL8kIsr OIo+CgX9eiRE6jB/WiamoXqFVWDzaVuTInY5e0wu1rGKggVhiGW/ikQX28ART803Tq6bew8BZ a+dbHR6bufLWXI05Acj/CZMCvbX/tmAxBE6uqKpuG16oGCvEmkNbtSrvssIL5fbtDBDTg0Tzq QUpxV3TYzb3xlQr4BwU6GI3LqDp/UCaFapTtD23rSivbLP1ES2Gprsm8M+bXCmnzraiIGL/hx 3lHSRds3CazzH87KFLxX0HuH4NGEZx2/4Pff+5sCd1n9EPKSI82jyS4WdoRJMj/GL4STeUfbM 1QEeB3hORCbGbqMctBLHPhY74O1pSxUczpf3QwfzMHvIJ2OWcs9gMJDIbxXdwhp70XLWPfwDU xy4rr1Ano0Y5S4vEpQFhZw3SM/Vm9+DcAJ/9ihJjkRer23ZbAAAYSj3455wltv3IlM6ggx6JK J11cdGePdJE6YHbYLdy7hgp8Nhp1dsZ5+X06jA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: The newly added callback pointers cause a warning for some configurations: In file included from net/ipv6/af_inet6.c:45:0: include/linux/netfilter_ipv6.h:38:51: error: 'struct nf_queue_entry' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] Adding a forward declaration for the type avoids the warnings. Fixes: 9faa679ee7ec ("netfilter: move reroute indirection to struct nf_ipv6_ops") Signed-off-by: Arnd Bergmann --- include/linux/netfilter_ipv4.h | 2 ++ include/linux/netfilter_ipv6.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/linux/netfilter_ipv4.h b/include/linux/netfilter_ipv4.h index 0259bcde6d2e..b31dabfdb453 100644 --- a/include/linux/netfilter_ipv4.h +++ b/include/linux/netfilter_ipv4.h @@ -18,6 +18,8 @@ struct ip_rt_info { int ip_route_me_harder(struct net *net, struct sk_buff *skb, unsigned addr_type); +struct nf_queue_entry; + #ifdef CONFIG_INET __sum16 nf_ip_checksum(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, u_int8_t protocol); diff --git a/include/linux/netfilter_ipv6.h b/include/linux/netfilter_ipv6.h index e4cdcfdce0f9..288c597e75b3 100644 --- a/include/linux/netfilter_ipv6.h +++ b/include/linux/netfilter_ipv6.h @@ -18,6 +18,8 @@ struct ip6_rt_info { u_int32_t mark; }; +struct nf_queue_entry; + /* * Hook functions for ipv6 to allow xt_* modules to be built-in even * if IPv6 is a module. -- 2.9.0