Skip to content

Commit dc2f418

Browse files
sfrothwellummakynes
authored andcommitted
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: 971502d ("bridge: netfilter: unroll NF_HOOK helper in bridge input path") Signed-off-by: Stephen Rothwell <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent 223fd0a commit dc2f418

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/bridge/br_input.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
#include <linux/netdevice.h>
1717
#include <linux/etherdevice.h>
1818
#include <linux/netfilter_bridge.h>
19+
#ifdef CONFIG_NETFILTER_FAMILY_BRIDGE
1920
#include <net/netfilter/nf_queue.h>
21+
#endif
2022
#include <linux/neighbour.h>
2123
#include <net/arp.h>
2224
#include <linux/export.h>

0 commit comments

Comments
 (0)