Skip to contentSkip to conversation

2.5.40: warning fix for drivers/usb/core/usb.c

PATCH In review Luc Van Oostenryck 2 participants 2 messages Oct 2, 2002 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.5.40: warning fix for drivers/usb/core/usb.c

Greg,

usb_hotplug()' prototype doesn't match when CONFIG_HOTPLUG is not defined. Here is the patch:

Regards,

Luc Van Oostenryck

drivers/usb/core/usb.c Wed Oct 2 00:47:22 2002 renamed from drivers/usb/core/usb.c Wed Oct 2 00:35:06 2002 +1 -1
diff -ur linux-2.5.40/drivers/usb/core/usb.c l-2.5.40/drivers/usb/core/usb.c
@@ -624,7 +624,7 @@
 #else
 
 static int usb_hotplug (struct device *dev, char **envp,
-                       char *buffer, int buffer_size)
+                       int num_envp, char *buffer, int buffer_size)
 {
        return -ENODEV;
 }
#1 lore raw
Quoted 4 lines · Luc Van Oostenryck

Greg,

usb_hotplug()' prototype doesn't match when CONFIG_HOTPLUG is not defined. Here is the patch:

Thanks for the patch, I've applied it to my tree.

greg k-h