From: Randy Dunlap <rdunlap@infradead.org>
To: Arnd Bergmann <arnd@arndb.de>,
Pablo Neira Ayuso <pablo@netfilter.org>,
Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>,
Florian Westphal <fw@strlen.de>
Cc: netfilter-devel@vger.kernel.org, coreteam@netfilter.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] netfilter: add nf_queue_entry forward declaration
Date: Tue, 2 Jan 2018 09:27:41 -0800 [thread overview]
Message-ID: <92911fb4-570f-4dd1-739d-9d20d2a37f30@infradead.org> (raw)
In-Reply-To: <20180102101644.200962-1-arnd@arndb.de>
On 01/02/2018 02:16 AM, Arnd Bergmann wrote:
> 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 <arnd@arndb.de>
Acked-and-tested-by: Randy Dunlap <rdunlap@infradead.org>
Thanks.
> ---
> 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.
>
--
~Randy
prev parent reply other threads:[~2018-01-02 17:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-02 10:16 [PATCH] netfilter: add nf_queue_entry forward declaration Arnd Bergmann
2018-01-02 11:11 ` Pablo Neira Ayuso
2018-01-02 17:27 ` Randy Dunlap [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=92911fb4-570f-4dd1-739d-9d20d2a37f30@infradead.org \
--to=rdunlap@infradead.org \
--cc=arnd@arndb.de \
--cc=coreteam@netfilter.org \
--cc=fw@strlen.de \
--cc=kadlec@blackhole.kfki.hu \
--cc=linux-kernel@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).