From 0a9e26b334979ded3d0318e83995eb3422fa1db1 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 21 Oct 2003 18:24:46 -0700 Subject: [PATCH] [PATCH] Fix arlan compilation with CONFIG_PROC_FS=n From: Luiz Capitulino when PROC_FS=n, arlan.h will define init_arlan_proc() and cleanup_arlan_proc() as macros. So, whitout the #ifdef/#endif here, we have two definitions. --- drivers/net/wireless/arlan-proc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/arlan-proc.c b/drivers/net/wireless/arlan-proc.c index d79c8d3f2e25d..7fa36627dc509 100644 --- a/drivers/net/wireless/arlan-proc.c +++ b/drivers/net/wireless/arlan-proc.c @@ -1229,7 +1229,7 @@ static ctl_table arlan_root_table[] = //}; - +#ifdef CONFIG_PROC_FS static struct ctl_table_header *arlan_device_sysctl_header; int __init init_arlan_proc(void) @@ -1254,3 +1254,4 @@ void __exit cleanup_arlan_proc(void) arlan_device_sysctl_header = NULL; } +#endif -- 2.53.0