From: Kristian Evensen Date: Fri, 10 Jan 2014 20:43:20 +0000 (+0100) Subject: netfilter: nft_ct: fix compilation warning if NF_CONNTRACK_MARK is not set X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=847c8e2959f7f8f1462e33c0a720c6267b984ed8;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Kristian Evensen Signed-off-by: Pablo Neira Ayuso --- 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;