Skip to contentSkip to conversation

hci_usb: fix sparse warnings (__nocast type)

PATCH New [email protected] 1 participant 1 message Jul 7, 2005 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 hci_usb: fix sparse warnings (__nocast type)

From: Victor Fusco <[email protected]>

Fix the sparse warning "implicit cast to nocast type"

File/Subsystem: drivers/bluetooth/hci_usb.c

---
 hci_usb.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/bluetooth/hci_usb.c +1 -1
Index: quilt/drivers/bluetooth/hci_usb.c
===================================================================
@@ -126,7 +126,7 @@ static struct usb_device_id blacklist_id
 	{ }	/* Terminating entry */
 };
 
-static struct _urb *_urb_alloc(int isoc, int gfp)
+static struct _urb *_urb_alloc(int isoc, unsigned int __nocast gfp)
 {
 	struct _urb *_urb = kmalloc(sizeof(struct _urb) +
 				sizeof(struct usb_iso_packet_descriptor) * isoc, gfp);

--