From: Peter Chen Date: Wed, 3 Jun 2020 06:53:55 +0000 (+0800) Subject: usb: cdns3: trace: fix some endian issues X-Git-Tag: v5.8-rc6~6^2~1^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=65b7cf48c211ece5e2560a334eb9608e48775a8f;p=thirdparty%2Flinux.git usb: cdns3: trace: fix some endian issues It is found by sparse. Reported-by: kbuild test robot Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/cdns3/trace.h b/drivers/usb/cdns3/trace.h index 755c565822575..0a2a3269bfac6 100644 --- a/drivers/usb/cdns3/trace.h +++ b/drivers/usb/cdns3/trace.h @@ -404,9 +404,9 @@ DECLARE_EVENT_CLASS(cdns3_log_trb, TP_fast_assign( __assign_str(name, priv_ep->name); __entry->trb = trb; - __entry->buffer = trb->buffer; - __entry->length = trb->length; - __entry->control = trb->control; + __entry->buffer = le32_to_cpu(trb->buffer); + __entry->length = le32_to_cpu(trb->length); + __entry->control = le32_to_cpu(trb->control); __entry->type = usb_endpoint_type(priv_ep->endpoint.desc); __entry->last_stream_id = priv_ep->last_stream_id; ),