]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ipt_CLUSTERIP: fix clusterip_net_exit build regression
authorArnd Bergmann <arnd@arndb.de>
Thu, 7 Dec 2017 13:26:09 +0000 (14:26 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 7 Dec 2017 22:19:58 +0000 (23:19 +0100)
commit6bbdff5b303dc4c0546221f7dc17d9e7a3d299c7
tree70650890126e4b34e3fb8f1c84b268274af210d5
parentc695df892f0466c45ce66e49a9187d0a72021993
netfilter: ipt_CLUSTERIP: fix clusterip_net_exit build regression

The added check produces a build error when CONFIG_PROC_FS is
disabled:

net/ipv4/netfilter/ipt_CLUSTERIP.c: In function 'clusterip_net_exit':
net/ipv4/netfilter/ipt_CLUSTERIP.c:822:28: error: 'cn' undeclared (first use in this function)

This moves the variable declaration out of the #ifdef to make it
available to the WARN_ON_ONCE().

Fixes: 27bfda8f32ed ("netfilter: exit_net cleanup check added")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter/ipt_CLUSTERIP.c