From: Stephen Rothwell Date: Sat, 13 Apr 2019 04:03:36 +0000 (+1000) Subject: bridge: only include nf_queue.h if needed X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=dc2f4189dcd2c87e211d30d9524ae8ebe19af577;p=linux.git bridge: only include nf_queue.h if needed After merging the netfilter-next tree, today's linux-next build (powerpc ppc44x_defconfig) failed like this: In file included from net/bridge/br_input.c:19: include/net/netfilter/nf_queue.h:16:23: error: field 'state' has incomplete type struct nf_hook_state state; ^~~~~ Fixes: 971502d77faa ("bridge: netfilter: unroll NF_HOOK helper in bridge input path") Signed-off-by: Stephen Rothwell Signed-off-by: Pablo Neira Ayuso --- diff --git a/net/bridge/br_input.c b/net/bridge/br_input.c index e0aacfedcfe12..86dc46f6a68f3 100644 --- a/net/bridge/br_input.c +++ b/net/bridge/br_input.c @@ -16,7 +16,9 @@ #include #include #include +#ifdef CONFIG_NETFILTER_FAMILY_BRIDGE #include +#endif #include #include #include