From patchwork Tue Jan 2 10:16:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 123109 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8790612qgn; Tue, 2 Jan 2018 02:17:09 -0800 (PST) X-Google-Smtp-Source: ACJfBouHmGGAjA1saZvKBRTKzM5+EZ1sju1Ib6wSah8r5wYeE4lGurgKDO/cSixOq2YJ75yGbWIN X-Received: by 10.159.234.138 with SMTP id d10mr45184024plr.280.1514888229107; Tue, 02 Jan 2018 02:17:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514888229; cv=none; d=google.com; s=arc-20160816; b=BsQhemGqrnN1Lu2k7qekxVBbuV/cV7Doqw+cr+z1pdBXbBf8k2xT4GwY7whoGkkCr6 ew8F2f/Emwfo8n28MJGbM/MBAMgBZ7HmPvpe+genGw/MSJ88/+1DC7aiP4QIuTWZrOlr H6fiHnfdV/iYyeopckw24set3PnxtkRHX7FuBgHadFtddzDmI5O2Ul0A7nUEwcz/u4HD 52v4NjktvzhcUdj2Uu1nuhwt9MhG+4YF+dCOCBjc7sd3hbvuRkfhIyRivOtf/lnxmYy2 FeyJUu+VVAwj0ARKgpBg2p8jyHS/Rlh1NNvLkatA7nUnHiHiS3auJ4db4Sv18gCqsksw kpWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=SUniIRlr0G/ZzdghH64GRmU2ClS/0bfasz654Qh5Se4=; b=Ka7kXAcmlNYFivYA9Ft2T/2+5/Gn8EKB1rG9B/R2Mhby43v1sEbbTDCqgOVaYWo54u Uz1H4IL7W6KQfJ/9gIUKXANx4IF3jT3h+wOUj20zYJlpkDQDaIvHhauMmU2BCdzA5PaA SwQDtL6czfa+paDtWvRA10s9Zn86XKJ78Dj3QWodxRIvmklvURZoa33HDyMpuoWEEANt nt3l4J96ZZN0OWDRdFp14jAdOzYEmFZQRCrBLLrU07HS58y+orGNT+AuhsnkC4HXsQ6O YclI3CyvUxkyu5Q3h2ezcs+9ZJyzl2BB4vJhd/zMtr0zcb6F+EsJQVVGczspCpkLXcm+ cSBw== 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 m14si16318541pgn.564.2018.01.02.02.17.08; Tue, 02 Jan 2018 02:17:09 -0800 (PST) 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 S1751577AbeABKRE (ORCPT + 28 others); 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 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.129]) with ESMTPA (Nemesis) id 0LroR0-1ev9o80LJ0-013e0j; Tue, 02 Jan 2018 11:16:46 +0100 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.9.0 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.