mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] fix vlsi_ir.c compile if !CONFIG_PROC_FS
@ 2003-06-07 15:24 Adrian Bunk
  2003-06-07 15:58 ` Sam Ravnborg
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Adrian Bunk @ 2003-06-07 15:24 UTC (permalink / raw)
  To: Jean Tourrilhes, linux-net; +Cc: linux-kernel, trivial

I got the following compile error with !CONFIG_PROC_FS:

<--  snip  -->

...
  CC      drivers/net/irda/vlsi_ir.o
drivers/net/irda/vlsi_ir.c: In function `vlsi_irda_probe':
drivers/net/irda/vlsi_ir.c:1826: warning: label `out_unregister' defined but not used
drivers/net/irda/vlsi_ir.c: In function `vlsi_mod_exit':
drivers/net/irda/vlsi_ir.c:2047: `PROC_DIR' undeclared (first use in this function)
drivers/net/irda/vlsi_ir.c:2047: (Each undeclared identifier is reported only once
drivers/net/irda/vlsi_ir.c:2047: for each function it appears in.)
make[3]: *** [drivers/net/irda/vlsi_ir.o] Error 1

<--  snip  -->


The following patch fixes it:


--- linux-2.5.70-mm5/drivers/net/irda/vlsi_ir.c.old	2003-06-07 17:01:26.000000000 +0200
+++ linux-2.5.70-mm5/drivers/net/irda/vlsi_ir.c	2003-06-07 17:02:25.000000000 +0200
@@ -2044,7 +2044,11 @@
 static void __exit vlsi_mod_exit(void)
 {
 	pci_unregister_driver(&vlsi_irda_driver);
+
+#ifdef CONFIG_PROC_FS
 	remove_proc_entry(PROC_DIR, 0);
+#endif
+
 }
 
 module_init(vlsi_mod_init);



cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-06-09  7:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-07 15:24 [patch] fix vlsi_ir.c compile if !CONFIG_PROC_FS Adrian Bunk
2003-06-07 15:58 ` Sam Ravnborg
2003-06-07 16:13   ` Adrian Bunk
2003-06-08  9:43   ` Martin Diehl
2003-06-07 16:22 ` Bartlomiej Zolnierkiewicz
2003-06-07 16:59   ` Adrian Bunk
2003-06-07 17:09     ` Sam Ravnborg
2003-06-07 20:09   ` Andrew Morton
2003-06-09  6:00   ` Rusty Russell
2003-06-08  9:40 ` Martin Diehl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®