summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamalesh Babulal <kamalesh@linux.vnet.ibm.com>2008-05-21 17:02:30 +0530
committerStephen Rothwell <sfr@canb.auug.org.au>2008-05-22 15:38:22 +1000
commita8d0c0a927a818d9100a3c6ce64c96410b25b8d7 (patch)
treefe193d0335266c76248aed4e5c1a3bf984aedf0a
parent2fe7c9ca224c32b29d05abc3c67034a659d261bf (diff)
build failure with netfilter on __nf_ct_helper_find()
Hi Stephen, The next-20080521 kernel build fails, on x86_64 machine CC net/netfilter/nf_conntrack_helper.o net/netfilter/nf_conntrack_helper.c: In function ‘__nf_ct_helper_find’: net/netfilter/nf_conntrack_helper.c:58: error: implicit declaration of function ‘hlist_for_each_entry_rcu’ net/netfilter/nf_conntrack_helper.c:58: error: ‘hnode’ undeclared (first use in this function) net/netfilter/nf_conntrack_helper.c:58: error: (Each undeclared identifier is reported only once net/netfilter/nf_conntrack_helper.c:58: error: for each function it appears in.) net/netfilter/nf_conntrack_helper.c:58: error: expected ‘;’ before ‘{’ token net/netfilter/nf_conntrack_helper.c:50: warning: unused variable ‘mask’ net/netfilter/nf_conntrack_helper.c: In function ‘__nf_conntrack_helper_find_byname’: net/netfilter/nf_conntrack_helper.c:74: error: ‘hnode’ undeclared (first use in this function) net/netfilter/nf_conntrack_helper.c:74: error: expected ‘;’ before ‘{’ token net/netfilter/nf_conntrack_helper.c: In function ‘nf_conntrack_helper_register’: net/netfilter/nf_conntrack_helper.c:117: error: implicit declaration of function ‘hlist_add_head_rcu’ net/netfilter/nf_conntrack_helper.c: In function ‘nf_conntrack_helper_unregister’: net/netfilter/nf_conntrack_helper.c:133: error: implicit declaration of function ‘hlist_del_rcu’ make[2]: *** [net/netfilter/nf_conntrack_helper.o] Error 1 make[1]: *** [net/netfilter] Error 2 make: *** [net] Error 2 This build error is because of the missing include file.I have tested the patch for the build failure only. Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com> --
-rw-r--r--net/netfilter/nf_conntrack_helper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/nf_conntrack_helper.c b/net/netfilter/nf_conntrack_helper.c
index 7d1b11703741..8e0b4c8f62a8 100644
--- a/net/netfilter/nf_conntrack_helper.c
+++ b/net/netfilter/nf_conntrack_helper.c
@@ -20,6 +20,7 @@
#include <linux/err.h>
#include <linux/kernel.h>
#include <linux/netdevice.h>
+#include <linux/rculist.h>
#include <net/netfilter/nf_conntrack.h>
#include <net/netfilter/nf_conntrack_l3proto.h>