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

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

Post by Luc Van Oostenryc » Thu, 03 Oct 2002 03:50:04



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

  #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;
  }

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

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

Post by Greg K » Thu, 03 Oct 2002 20:40:10



> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. PATCH: 2.5.40 Fix cs89x0 warnings

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.2.5.40/drivers/net/cs89x0.c linux.2.5.40-ac5/drivers/net/cs89x0.c
--- linux.2.5.40/drivers/net/cs89x0.c   2002-10-02 21:33:29.000000000 +0100

 #ifdef MODULE

-static struct net_device dev_cs89x0 = {
-        "",
-        0, 0, 0, 0,
-        0, 0,
-        0, 0, 0, NULL, NULL };
+static struct net_device dev_cs89x0;

 /*
  * Support the 'debug' module parm even if we're compiled for non-debug to
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. free UNIX-like system as an IP router

3. PATCH: 2.5.40 fix warning in longhaul.c

4. Symbios SYM53C876 support?

5. USB OOPS in 2.5.40 ?

6. Gateway addresses

7. ALSA Menuconfig Breakage in 2.5.40 and 2.5.40-bk1

8. hostname

9. USB Hub failure in 2.5.40/2.5.41

10. USB changes for 2.5.40

11. PATCH: 2.5.40 Fix stupid scsi setup bug in 53c406, fix addressing

12. compile fix for drm in 2.5.40

13. PATCH: 2.5.40 forward port toughbook fixes for maestro3