mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
[PATCH] USB: Fix kmalloc's flags type in USB
Greg, This patch fixes the kmalloc() flags argument type in USB subsystem; hopefully all of its occurences. The patch was made against patch-2.6.12-git2 from Jun 20. Cleanup of flags for kmalloc() in USB subsystem. Signed-off-by: Olav Kongas <ok@artecdesign.ee> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
17f8bb7312
commit
5db539e49f
26 changed files with 81 additions and 75 deletions
|
@ -938,17 +938,17 @@ static inline void usb_fill_int_urb (struct urb *urb,
|
|||
}
|
||||
|
||||
extern void usb_init_urb(struct urb *urb);
|
||||
extern struct urb *usb_alloc_urb(int iso_packets, int mem_flags);
|
||||
extern struct urb *usb_alloc_urb(int iso_packets, unsigned mem_flags);
|
||||
extern void usb_free_urb(struct urb *urb);
|
||||
#define usb_put_urb usb_free_urb
|
||||
extern struct urb *usb_get_urb(struct urb *urb);
|
||||
extern int usb_submit_urb(struct urb *urb, int mem_flags);
|
||||
extern int usb_submit_urb(struct urb *urb, unsigned mem_flags);
|
||||
extern int usb_unlink_urb(struct urb *urb);
|
||||
extern void usb_kill_urb(struct urb *urb);
|
||||
|
||||
#define HAVE_USB_BUFFERS
|
||||
void *usb_buffer_alloc (struct usb_device *dev, size_t size,
|
||||
int mem_flags, dma_addr_t *dma);
|
||||
unsigned mem_flags, dma_addr_t *dma);
|
||||
void usb_buffer_free (struct usb_device *dev, size_t size,
|
||||
void *addr, dma_addr_t dma);
|
||||
|
||||
|
@ -1055,7 +1055,7 @@ int usb_sg_init (
|
|||
struct scatterlist *sg,
|
||||
int nents,
|
||||
size_t length,
|
||||
int mem_flags
|
||||
unsigned mem_flags
|
||||
);
|
||||
void usb_sg_cancel (struct usb_sg_request *io);
|
||||
void usb_sg_wait (struct usb_sg_request *io);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue