Re: [PATCH] netfilter: ipt_CLUSTERIP: fix warning unused variable cn
From: Pablo Neira Ayuso
Date: Mon Jan 28 2019 - 04:51:50 EST
On Wed, Jan 23, 2019 at 12:48:11PM +0100, Anders Roxell wrote:
> When CONFIG_PROC_FS isn't set the variable cn isn't used.
>
> net/ipv4/netfilter/ipt_CLUSTERIP.c: In function âclusterip_net_exitâ:
> net/ipv4/netfilter/ipt_CLUSTERIP.c:849:24: warning: unused variable âcnâ [-Wunused-variable]
> struct clusterip_net *cn = clusterip_pernet(net);
> ^~
>
> Rework so the variable 'cn' is declared inside "#ifdef CONFIG_PROC_FS".
Applied, thanks.