diff --git a/net/netfilter/nft_ct.c b/net/netfilter/nft_ct.c index bd0d41e693416167b4f149f64117e440a5134496..a2c45bd8691c405fa0f12cff496344f5a3bbf7d6 100644 --- a/net/netfilter/nft_ct.c +++ b/net/netfilter/nft_ct.c @@ -268,8 +268,10 @@ static int nft_ct_init_validate_get(const struct nft_expr *expr, static int nft_ct_init_validate_set(uint32_t key) { switch (key) { +#ifdef CONFIG_NF_CONNTRACK_MARK case NFT_CT_MARK: break; +#endif default: return -EOPNOTSUPP; }