netfilter: dup: resolve warnings about missing prototypes
authorstephen hemminger <stephen@networkplumber.org>
Fri, 19 May 2017 16:29:41 +0000 (09:29 -0700)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 29 May 2017 09:32:36 +0000 (11:32 +0200)
Missing include file causes:

net/netfilter/nf_dup_netdev.c:26:6: warning: no previous prototype for ‘nf_fwd_netdev_egress’ [-Wmissing-prototypes]
net/netfilter/nf_dup_netdev.c:40:6: warning: no previous prototype for ‘nf_dup_netdev_egress’ [-Wmissing-prototypes]

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_dup_netdev.c

index c9d7f95768ab35e26bc88c4c2350d792e78da9ba..f4a566e672135d420246471be6cd35a9e77bfbf1 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/netfilter.h>
 #include <linux/netfilter/nf_tables.h>
 #include <net/netfilter/nf_tables.h>
+#include <net/netfilter/nf_dup_netdev.h>
 
 static void nf_do_netdev_egress(struct sk_buff *skb, struct net_device *dev)
 {