]> err.no Git - linux-2.6/commitdiff
[NETFILTER]: xt_CONNMARK.c build fix
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Tue, 29 Aug 2006 00:50:37 +0000 (17:50 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 22 Sep 2006 22:18:27 +0000 (15:18 -0700)
net/netfilter/xt_CONNMARK.c: In function 'target':
net/netfilter/xt_CONNMARK.c:59: warning: implicit declaration of
function 'nf_conntrack_event_cache'

The warning is due to the following .config:
CONFIG_IP_NF_CONNTRACK=m
CONFIG_IP_NF_CONNTRACK_MARK=y
# CONFIG_IP_NF_CONNTRACK_EVENTS is not set
CONFIG_IP_NF_CONNTRACK_NETLINK=m

This change was introduced by:
http://www.kernel.org/git/?p=linux/kernel/git/davem/net-2.6.19.git;a=commit;h=76e4b41009b8a2e9dd246135cf43c7fe39553aa5

Proposed solution (based on the define in
include/net/netfilter/nf_conntrack_compat.h:

Signed-off-by: Benoit Boissinot <benoit.boissinot@ens-lyon.org>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/xt_CONNMARK.c

index 0e4249ddc17bb9fa62dd8d9e723cd31ed1c13b12..6ccb45ee088026c4e74f9e2d35f79a14ebead18f 100644 (file)
@@ -53,7 +53,7 @@ target(struct sk_buff **pskb,
                        newmark = (*ctmark & ~markinfo->mask) | markinfo->mark;
                        if (newmark != *ctmark) {
                                *ctmark = newmark;
-#ifdef CONFIG_IP_NF_CONNTRACK_EVENTS
+#if defined(CONFIG_IP_NF_CONNTRACK) || defined(CONFIG_IP_NF_CONNTRACK_MODULE)
                                ip_conntrack_event_cache(IPCT_MARK, *pskb);
 #else
                                nf_conntrack_event_cache(IPCT_MARK, *pskb);
@@ -65,7 +65,7 @@ target(struct sk_buff **pskb,
                                  ((*pskb)->nfmark & markinfo->mask);
                        if (*ctmark != newmark) {
                                *ctmark = newmark;
-#ifdef CONFIG_IP_NF_CONNTRACK_EVENTS
+#if defined(CONFIG_IP_NF_CONNTRACK) || defined(CONFIG_IP_NF_CONNTRACK_MODULE)
                                ip_conntrack_event_cache(IPCT_MARK, *pskb);
 #else
                                nf_conntrack_event_cache(IPCT_MARK, *pskb);