]> rtime.felk.cvut.cz Git - linux-imx.git/commit
netfilter: nf_{log,queue}: fix compilation without CONFIG_PROC_FS
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 30 Apr 2013 08:01:18 +0000 (08:01 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 6 May 2013 10:28:01 +0000 (12:28 +0200)
commite778f56e2fdf2302626f40f01b3ffa33e4fd18a4
tree8dcea512c95276f8ced4086fd408355bfa9a23b4
parentefeaa5550e4bfd335396415958fe3615530e5d5c
netfilter: nf_{log,queue}: fix compilation without CONFIG_PROC_FS

This patch fixes the following compilation error:

net/netfilter/nf_log.c:373:38: error: 'struct netns_nf' has no member named 'proc_netfilter'

if procfs is not set.

The netns support for nf_log, nfnetlink_log and nfnetlink_queue_core
requires CONFIG_PROC_FS in the removal path of their respective
/proc interface since net->nf.proc_netfilter is undefined in that
case.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Acked-by: Gao feng <gaofeng@cn.fujitsu.com>
net/netfilter/nf_log.c
net/netfilter/nfnetlink_log.c
net/netfilter/nfnetlink_queue_core.c