netfilter: add include file to nf_conntrack_snmp.c
Subsystems (2)
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.
Signed-off-by Stephen Hemminger <[email protected]>
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
Quoted 2 lines · Stephen Hemminger
Prototype for
nf_nat_snmp_hookis innf_conntrack_snmp.htherefore it should be included to get type checking. Found by sparse.
Applied, thanks Stephen.