[PATCH] Warning fixes with CONFIG_PCMCIA_DEBUG

Pavel Roskin proski at gnu.org
Tue Mar 16 16:49:09 GMT 2004


Hello!

There are already several warnings in the ISA drivers, but enabling
CONFIG_PCMCIA_DEBUG in Linux 2.6.5-rc1 adds one more:

drivers/pcmcia/i82365.c: At top level:
drivers/pcmcia/i82365.c:71: warning: `version' defined but not used

The same warning is in tcic.c.  I guess version is supposed to be printed
when the module is loaded.  The patch is attached.

-- 
Regards,
Pavel Roskin
-------------- next part --------------
--- linux.orig/drivers/pcmcia/i82365.c
+++ linux/drivers/pcmcia/i82365.c
@@ -1371,6 +1371,7 @@ static int __init init_i82365(void)
 {
     int i, ret;
 
+    debug(0, "%s\n", version);
     if (driver_register(&i82365_driver))
 	return -1;
 
--- linux.orig/drivers/pcmcia/tcic.c
+++ linux/drivers/pcmcia/tcic.c
@@ -403,6 +403,7 @@ static int __init init_tcic(void)
     int i, sock, ret = 0;
     u_int mask, scan;
 
+    debug(0, "%s\n", version);
     if (driver_register(&tcic_driver))
 	return -1;
     


More information about the linux-pcmcia mailing list