* [PATCH 1/1] usb: chipidea: trace: fix the endian issue
@ 2020-11-13 7:47 Peter Chen
0 siblings, 0 replies; only message in thread
From: Peter Chen @ 2020-11-13 7:47 UTC (permalink / raw)
To: linux-usb; +Cc: linux-imx, jun.li, Peter Chen
From: Peter Chen <peter.chen@nxp.com>
"sparse warnings: (new ones prefixed by >>)"
drivers/usb/chipidea/trace.c: note: in included file (through include/trace/trace_events.h, include/trace/define_trace.h, drivers/usb/chipidea/trace.h):
>> drivers/usb/chipidea/./trace.h:39:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] next @@ got restricted __le32 [usertype] next @@
>> drivers/usb/chipidea/./trace.h:39:1: sparse: expected unsigned int [usertype] next
>> drivers/usb/chipidea/./trace.h:39:1: sparse: got restricted __le32 [usertype] next
>> drivers/usb/chipidea/./trace.h:39:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] token @@ got restricted __le32 [usertype] token @@
>> drivers/usb/chipidea/./trace.h:39:1: sparse: expected unsigned int [usertype] token
>> drivers/usb/chipidea/./trace.h:39:1: sparse: got restricted __le32 [usertype] token
drivers/usb/chipidea/trace.c: note: in included file (through include/trace/perf.h, include/trace/define_trace.h, drivers/usb/chipidea/trace.h):
>> drivers/usb/chipidea/./trace.h:39:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] next @@ got restricted __le32 [usertype] next @@
>> drivers/usb/chipidea/./trace.h:39:1: sparse: expected unsigned int [usertype] next
>> drivers/usb/chipidea/./trace.h:39:1: sparse: got restricted __le32 [usertype] next
>> drivers/usb/chipidea/./trace.h:39:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] token @@ got restricted __le32 [usertype] token @@
>> drivers/usb/chipidea/./trace.h:39:1: sparse: expected unsigned int [usertype] token
>> drivers/usb/chipidea/./trace.h:39:1: sparse: got restricted __le32 [usertype] token
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
---
drivers/usb/chipidea/trace.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/chipidea/trace.h b/drivers/usb/chipidea/trace.h
index 44ffb2bb625e..1601fd86c4c1 100644
--- a/drivers/usb/chipidea/trace.h
+++ b/drivers/usb/chipidea/trace.h
@@ -56,8 +56,8 @@ DECLARE_EVENT_CLASS(ci_log_trb,
__entry->td = td;
__entry->dma = td->dma;
__entry->td_remaining_size = td->td_remaining_size;
- __entry->next = td->ptr->next;
- __entry->token = td->ptr->token;
+ __entry->next = le32_to_cpu(td->ptr->next);
+ __entry->token = le32_to_cpu(td->ptr->token);
__entry->type = usb_endpoint_type(hwep->ep.desc);
),
TP_printk("%s: req: %p, td: %p, td_dma_address: %pad, remaining_size: %d, "
--
2.17.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-13 7:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-13 7:47 [PATCH 1/1] usb: chipidea: trace: fix the endian issue Peter Chen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).