IrDA gcc warnings in 2.4.8-ac9

From: Pete Zaitcev (zaitcev@redhat.com)
Date: Wed Aug 22 2001 - 16:08:33 EST


In case anyone cares about such minor things as warnings...

--- linux-2.4.8-ac9/init/main.c Wed Aug 22 11:02:12 2001
+++ linux-2.4.8-ac9-niph/init/main.c Wed Aug 22 12:09:23 2001
@@ -67,6 +67,7 @@
 
 #ifdef CONFIG_IRDA
 #include <net/irda/irda_device.h>
+extern int irda_proto_init(void);
 #endif
 
 #ifdef CONFIG_X86_LOCAL_APIC
--- linux-2.4.8-ac9/net/irda/irda_device.c Wed Apr 18 14:40:07 2001
+++ linux-2.4.8-ac9-niph/net/irda/irda_device.c Wed Aug 22 12:11:47 2001
@@ -457,15 +457,17 @@
 dongle_t *irda_device_dongle_init(struct net_device *dev, int type)
 {
         struct dongle_reg *reg;
- char modname[32];
         dongle_t *dongle;
 
         ASSERT(dev != NULL, return NULL;);
 
 #ifdef CONFIG_KMOD
+ {
+ char modname[32];
         /* Try to load the module needed */
         sprintf(modname, "irda-dongle-%d", type);
         request_module(modname);
+ }
 #endif /* CONFIG_KMOD */
 
         if (!(reg = hashbin_find(dongles, type, NULL))) {

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 23 2001 - 21:00:51 EST