mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[Bluetooth]: Fix sparse warnings (__nocast type)
This patch fixes the sparse warnings "implicit cast to nocast type" for the priority or gfp_mask parameters of the memory allocations. Signed-off-by: Victor Fusco <[email protected]> Signed-off-by: Domen Puncer <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
3a5e903c09
commit
2eb25a6c34
9 changed files with 10 additions and 9 deletions
|
|
@ -307,7 +307,8 @@ unlock:
|
|||
read_unlock(&data->lock);
|
||||
}
|
||||
|
||||
static inline struct urb *bpa10x_alloc_urb(struct usb_device *udev, unsigned int pipe, size_t size, int flags, void *data)
|
||||
static inline struct urb *bpa10x_alloc_urb(struct usb_device *udev, unsigned int pipe,
|
||||
size_t size, unsigned int __nocast flags, void *data)
|
||||
{
|
||||
struct urb *urb;
|
||||
struct usb_ctrlrequest *cr;
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ static struct usb_device_id blacklist_ids[] = {
|
|||
{ } /* 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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue