* [freescale-fslc:pr/312 8473/18196] drivers/usb/chipidea/./trace.h:39:1: sparse: sparse: incorrect type in assignment (different base types)
@ 2021-04-17 2:44 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-17 2:44 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4329 bytes --]
tree: https://github.com/Freescale/linux-fslc pr/312
head: 98ba4471da6187346dbcc17cdf31671fb5d28b91
commit: d74f8108dce77b0fb2496cfe92461de9766e060e [8473/18196] MLK-23677-4 usb: chipidea: add tracepoint support for udc
config: i386-randconfig-s032-20210416 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-280-g2cd6d34e-dirty
# https://github.com/Freescale/linux-fslc/commit/d74f8108dce77b0fb2496cfe92461de9766e060e
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/312
git checkout d74f8108dce77b0fb2496cfe92461de9766e060e
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.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
vim +39 drivers/usb/chipidea/./trace.h
38
> 39 DECLARE_EVENT_CLASS(ci_log_trb,
40 TP_PROTO(struct ci_hw_ep *hwep, struct ci_hw_req *hwreq, struct td_node *td),
41 TP_ARGS(hwep, hwreq, td),
42 TP_STRUCT__entry(
43 __string(name, hwep->name)
44 __field(struct td_node *, td)
45 __field(struct usb_request *, req)
46 __field(dma_addr_t, dma)
47 __field(s32, td_remaining_size)
48 __field(u32, next)
49 __field(u32, token)
50 __field(u32, type)
51 ),
52 TP_fast_assign(
53 __assign_str(name, hwep->name);
54 __entry->req = &hwreq->req;
55 __entry->td = td;
56 __entry->dma = td->dma;
57 __entry->td_remaining_size = td->td_remaining_size;
58 __entry->next = td->ptr->next;
59 __entry->token = td->ptr->token;
60 __entry->type = usb_endpoint_type(hwep->ep.desc);
61 ),
62 TP_printk("%s: req: %p, td %p, td_dma_address: 0x%llx, remaining_size: %d,"
63 "next: 0x%x, total bytes: %d, status: 0x%lx",
64 __get_str(name), __entry->req, __entry->td, __entry->dma,
65 __entry->td_remaining_size, __entry->next,
66 (int)((__entry->token & TD_TOTAL_BYTES) >> __ffs(TD_TOTAL_BYTES)),
67 __entry->token & TD_STATUS
68 )
69 );
70
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 32258 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-17 2:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-17 2:44 [freescale-fslc:pr/312 8473/18196] drivers/usb/chipidea/./trace.h:39:1: sparse: sparse: incorrect type in assignment (different base types) kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.