tree: https://git.kernel.org/pub/scm/linux/kernel/git/peter.chen/usb.git for-usb-next head: 87a6b8617a72754e38a666c9bf3bad275e1442cd commit: 87a6b8617a72754e38a666c9bf3bad275e1442cd [9/9] usb: chipidea: add tracepoint support for udc config: i386-randconfig-s002-20201111 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.3-107-gaf3512a6-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/peter.chen/usb.git/commit/?id=87a6b8617a72754e38a666c9bf3bad275e1442cd git remote add peter.chen-usb https://git.kernel.org/pub/scm/linux/kernel/git/peter.chen/usb.git git fetch --no-tags peter.chen-usb for-usb-next git checkout 87a6b8617a72754e38a666c9bf3bad275e1442cd # save the attached .config to linux build tree make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> "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: %pad, remaining_size: %d, " 63 "next: %x, total bytes: %d, status: %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@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip