Skip to contentSkip to conversation

netfilter: add include file to nf_conntrack_snmp.c

PATCH Applied Stephen Hemminger 2 participants 2 messages Dec 29, 2012 – Jan 17, 2013

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

PATCH 1/1 netfilter: add include file to nf_conntrack_snmp.c

Prototype for nf_nat_snmp_hook is in nf_conntrack_snmp.h therefore it should be included to get type checking. Found by sparse.

net/netfilter/nf_conntrack_snmp.c +1 -0
@@ -16,6 +16,7 @@
 #include <net/netfilter/nf_conntrack.h>
 #include <net/netfilter/nf_conntrack_helper.h>
 #include <net/netfilter/nf_conntrack_expect.h>
+#include <linux/netfilter/nf_conntrack_snmp.h>
 
 #define SNMP_PORT	161
 
maintainer Applied
#1 lore raw
Quoted 2 lines · Stephen Hemminger

Prototype for nf_nat_snmp_hook is in nf_conntrack_snmp.h therefore it should be included to get type checking. Found by sparse.

Applied, thanks Stephen.