Commit fda8e9872c87f85288b08f1abc8dbf1ab9dd99f5
Committed by
Priyanka Jain
1 parent
ac43a0cb5b
Exists in
smarc_8mq_lf_v2020.04
and in
4 other branches
usb: xhci: Fix armv7 compile warning
drivers/usb/host/xhci-ring.c: In function 'xhci_bulk_tx': drivers/usb/host/xhci-ring.c:726:6: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 726 | if ((void *)le64_to_cpu(event->trans_event.buffer) != last_transfer_trb_addr) { | ^ Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
drivers/usb/host/xhci-ring.c
... | ... | @@ -725,7 +725,8 @@ |
725 | 725 | return -ETIMEDOUT; |
726 | 726 | } |
727 | 727 | |
728 | - if ((void *)event->trans_event.buffer != last_transfer_trb_addr) { | |
728 | + if ((uintptr_t)event->trans_event.buffer != | |
729 | + (uintptr_t)last_transfer_trb_addr) { | |
729 | 730 | available_length -= |
730 | 731 | (int)EVENT_TRB_LEN(le32_to_cpu(event->trans_event.transfer_len)); |
731 | 732 | xhci_acknowledge_event(ctrl); |