History

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; ^~~~~

Stephen Rothwell committed 7 years ago

Commit dc2f4181 parent 223fd0a1 file · +2 −0Browse files

Unified · Split

net/bridge/br_input.c+2−0
@@ -16,7 +16,9 @@ · 15 unmodified lines
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>

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t