Skip to contentSkip to conversation

IrDA gcc warnings in 2.4.8-ac9

PATCH Pete Zaitcev 1 participant 1 message Aug 22, 2001 Networking

lore
Share & tools
lore
#0 lore raw

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

init/main.c +1 -0
@@ -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
net/irda/irda_device.c +3 -1
@@ -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))) {