]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Fix arlan compilation with CONFIG_PROC_FS=n
authorAndrew Morton <akpm@osdl.org>
Wed, 22 Oct 2003 01:24:46 +0000 (18:24 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 22 Oct 2003 01:24:46 +0000 (18:24 -0700)
From: Luiz Capitulino <lcapitulino@prefeitura.sp.gov.br>

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

index d79c8d3f2e25dd42a8de5078b8415b4bbe313c60..7fa36627dc5090ca86e36ef5d969ab5ea30570f2 100644 (file)
@@ -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