From: Harald Welte Date: Thu, 11 Aug 2005 22:30:45 +0000 (-0700) Subject: [NETFILTER]: Fix compilation when no PROC_FS enabled X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=622439270c74f3ad4f69d1417aca4bb3b79514f4;p=deliverable%2Flinux.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 573e76a770d9..3e76bd0824a2 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; }