Skip to content

Commit 65b7cf4

Browse files
Peter Chenfelipebalbi
authored andcommitted
usb: cdns3: trace: fix some endian issues
It is found by sparse. Reported-by: kbuild test robot <[email protected]> Signed-off-by: Peter Chen <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
1 parent 9f81d45 commit 65b7cf4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/usb/cdns3/trace.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,9 @@ DECLARE_EVENT_CLASS(cdns3_log_trb,
404404
TP_fast_assign(
405405
__assign_str(name, priv_ep->name);
406406
__entry->trb = trb;
407-
__entry->buffer = trb->buffer;
408-
__entry->length = trb->length;
409-
__entry->control = trb->control;
407+
__entry->buffer = le32_to_cpu(trb->buffer);
408+
__entry->length = le32_to_cpu(trb->length);
409+
__entry->control = le32_to_cpu(trb->control);
410410
__entry->type = usb_endpoint_type(priv_ep->endpoint.desc);
411411
__entry->last_stream_id = priv_ep->last_stream_id;
412412
),

0 commit comments

Comments
 (0)