aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/host/xhci-ring.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
index 88392aa65722..feffceb31e8a 100644
--- a/drivers/usb/host/xhci-ring.c
+++ b/drivers/usb/host/xhci-ring.c
@@ -673,7 +673,7 @@ static void xhci_unmap_td_bounce_buffer(struct xhci_hcd *xhci,
673 len = sg_pcopy_from_buffer(urb->sg, urb->num_sgs, seg->bounce_buf, 673 len = sg_pcopy_from_buffer(urb->sg, urb->num_sgs, seg->bounce_buf,
674 seg->bounce_len, seg->bounce_offs); 674 seg->bounce_len, seg->bounce_offs);
675 if (len != seg->bounce_len) 675 if (len != seg->bounce_len)
676 xhci_warn(xhci, "WARN Wrong bounce buffer read length: %ld != %d\n", 676 xhci_warn(xhci, "WARN Wrong bounce buffer read length: %zu != %d\n",
677 len, seg->bounce_len); 677 len, seg->bounce_len);
678 seg->bounce_len = 0; 678 seg->bounce_len = 0;
679 seg->bounce_offs = 0; 679 seg->bounce_offs = 0;
@@ -3166,7 +3166,7 @@ static int xhci_align_td(struct xhci_hcd *xhci, struct urb *urb, u32 enqd_len,
3166 seg->bounce_buf, new_buff_len, enqd_len); 3166 seg->bounce_buf, new_buff_len, enqd_len);
3167 if (len != seg->bounce_len) 3167 if (len != seg->bounce_len)
3168 xhci_warn(xhci, 3168 xhci_warn(xhci,
3169 "WARN Wrong bounce buffer write length: %ld != %d\n", 3169 "WARN Wrong bounce buffer write length: %zu != %d\n",
3170 len, seg->bounce_len); 3170 len, seg->bounce_len);
3171 seg->bounce_dma = dma_map_single(dev, seg->bounce_buf, 3171 seg->bounce_dma = dma_map_single(dev, seg->bounce_buf,
3172 max_pkt, DMA_TO_DEVICE); 3172 max_pkt, DMA_TO_DEVICE);