From: Harald Welte Date: Thu, 11 Aug 2005 22:30:45 +0000 (-0700) Subject: [NETFILTER]: Fix compilation when no PROC_FS enabled X-Git-Tag: v2.6.14-rc1~1035^2~111 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=622439270c74f3ad4f69d1417aca4bb3b79514f4;p=linux-2.6-omap-h63xx.git [NETFILTER]: Fix compilation when no PROC_FS enabled Signed-off-by: Harald Welte Signed-off-by: David S. Miller --- diff --git a/net/netfilter/nf_log.c b/net/netfilter/nf_log.c index 573e76a770d..3e76bd0824a 100644 --- a/net/netfilter/nf_log.c +++ b/net/netfilter/nf_log.c @@ -167,12 +167,12 @@ int __init netfilter_log_init(void) { #ifdef CONFIG_PROC_FS struct proc_dir_entry *pde; + pde = create_proc_entry("nf_log", S_IRUGO, proc_net_netfilter); -#endif if (!pde) return -1; pde->proc_fops = &nflog_file_ops; - +#endif return 0; }