On Mon, Jan 09, 2012 at 01:14:55PM +0100, Sebastian Andrzej Siewior wrote: > Hi Felipe, > > this is the resend I asked about: > [PATCH 1/5] usb/dummy_hcd: initialize max_streams early > [PATCH 2/5] usb/dummy_hcd: move the transfer part into its own > [PATCH 3/5] usb/dummy_hcd: add sg support > [PATCH 4/5] usb/dummy_hcd: rename dummy_udc_udpate_ep0() to > [PATCH 5/5] usb/dummy_hcd: make alloc/free streams static applied all 5, thanks. Had to fix a compile warning on 3/5: drivers/usb/gadget/dummy_hcd.c: In function ‘dummy_perform_transfer’: drivers/usb/gadget/dummy_hcd.c:1178:13: warning: comparison of distinct pointer types lacks a cast [enabled by default] diff --git a/drivers/usb/gadget/dummy_hcd.c b/drivers/usb/gadget/dummy_hcd.c index 5b32885..4973778 100644 --- a/drivers/usb/gadget/dummy_hcd.c +++ b/drivers/usb/gadget/dummy_hcd.c @@ -1175,7 +1175,7 @@ static int dummy_perform_transfer(struct urb *urb, struct dummy_request *req, } do { ubuf = miter->addr; - this_sg = min(len, miter->length); + this_sg = min_t(u32, len, miter->length); miter->consumed = this_sg; trans += this_sg; -- balbi
Attachment:
signature.asc
Description: Digital signature