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
16#include <linux/netdevice.h>16#include <linux/netdevice.h>
17#include <linux/etherdevice.h>17#include <linux/etherdevice.h>
18#include <linux/netfilter_bridge.h>18#include <linux/netfilter_bridge.h>
19#ifdef CONFIG_NETFILTER_FAMILY_BRIDGE
19#include <net/netfilter/nf_queue.h>20#include <net/netfilter/nf_queue.h>
21#endif
20#include <linux/neighbour.h>22#include <linux/neighbour.h>
21#include <net/arp.h>23#include <net/arp.h>
22#include <linux/export.h>24#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