2002-10-02 01:33:33

by Luc Van Oostenryck

[permalink] [raw]
Subject: [PATCH] 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


diff -ur linux-2.5.40/drivers/usb/core/usb.c l-2.5.40/drivers/usb/core/usb.c
--- linux-2.5.40/drivers/usb/core/usb.c Wed Oct 2 00:35:06 2002
+++ l-2.5.40/drivers/usb/core/usb.c Wed Oct 2 00:47:22 2002
@@ -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;
}


2002-10-02 18:30:56

by Greg KH

[permalink] [raw]
Subject: Re: [PATCH] 2.5.40: warning fix for drivers/usb/core/usb.c

On Wed, Oct 02, 2002 at 03:42:21AM +0200, Luc Van Oostenryck wrote:
> 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