Skip to contentSkip to conversation

bridge: only include nf_queue.h if needed

PATCH New Stephen Rothwell 1 participant 1 message Apr 13, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 net/bridge/br_input.c | 2 ++
 1 file changed, 2 insertions(+)
net/bridge/br_input.c +2 -0
index e0aacfedcfe1..86dc46f6a68f 100644
@@ -16,7 +16,9 @@
 #include <linux/netdevice.h>
 #include <linux/etherdevice.h>
 #include <linux/netfilter_bridge.h>
+#ifdef CONFIG_NETFILTER_FAMILY_BRIDGE
 #include <net/netfilter/nf_queue.h>
+#endif
 #include <linux/neighbour.h>
 #include <net/arp.h>
 #include <linux/export.h>
Signature · 5 lines
2.20.1

-- 
Cheers,
Stephen Rothwell