PATCH: Fix warning on 64bit boxes
Subsystems (2)
We cast an int to a void * which not unreasonably makes gcc suspicious. We don't actually care what type "type" is so use unsigned long so it matches pointer length on all platforms.
Signed-off-by Alan Cox <[email protected]>
drivers/usb/storage/libusual.c +1 -1
@@ -116,7 +116,7 @@static int usu_probe (struct usb_interface *intf,const struct usb_device_id *id) { -int type; +unsigned long type;int rc;unsigned long flags;
Pete Zaitcev
Acked-bydrivers/usb/storage/libusual.c line 119
Quoted 11 lines · Alan Cox
We cast an int to a void * which not unreasonably makes gcc suspicious. We don't actually care what type "type" is so use unsigned long so it matches pointer length on all platforms.
Signed-off-by Alan Cox <[email protected]>static int usu_probe(struct
usb_interface*intf,drivers/usb/storage/libusual.c +1
-1const struct usb_device_id *id) { -int type; +unsigned long type;
Looks good to me.
Acked-by Pete Zaitcev <[email protected]>
-- Pete