diff options
author | Kristian Evensen <kristian.evensen@gmail.com> | 2014-01-10 21:43:20 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-01-15 11:00:14 +0100 |
commit | 847c8e2959f7f8f1462e33c0a720c6267b984ed8 (patch) | |
tree | ad45e61358a4643dc3c7d4c7e46526bf1c6d4306 /net/netfilter/nft_ct.c | |
parent | 419331d8ff0ff2b009db5cbc2de9e8731828dc49 (diff) | |
download | linux-stable-847c8e2959f7f8f1462e33c0a720c6267b984ed8.tar.gz linux-stable-847c8e2959f7f8f1462e33c0a720c6267b984ed8.tar.bz2 linux-stable-847c8e2959f7f8f1462e33c0a720c6267b984ed8.zip |
netfilter: nft_ct: fix compilation warning if NF_CONNTRACK_MARK is not set
net/netfilter/nft_ct.c: In function 'nft_ct_set_eval':
net/netfilter/nft_ct.c:136:6: warning: unused variable 'value' [-Wunused-variable]
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_ct.c')
-rw-r--r-- | net/netfilter/nft_ct.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/netfilter/nft_ct.c b/net/netfilter/nft_ct.c index c7c12858e113..917052e20602 100644 --- a/net/netfilter/nft_ct.c +++ b/net/netfilter/nft_ct.c @@ -133,7 +133,9 @@ static void nft_ct_set_eval(const struct nft_expr *expr, { const struct nft_ct *priv = nft_expr_priv(expr); struct sk_buff *skb = pkt->skb; +#ifdef CONFIG_NF_CONNTRACK_MARK u32 value = data[priv->sreg].data[0]; +#endif enum ip_conntrack_info ctinfo; struct nf_conn *ct; |