Skip to contentSkip to conversation

include/trace/../../drivers/bus/mhi/host/trace.h:87:1: sparse: sparse: cast to restricted __le64

PATCH kernel test robot 1 participant 1 message Feb 7, 2024 Memory management

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   2ae0a045e6814c8c1d676d6153c605a65746aa29
commit: ceeb64f41fe6a1eb9fc56d583983a81f8f3dd058 [4351/4898] bus: mhi: host: Add tracing support
config: x86_64-randconfig-123-20240207 (https://download.01.org/0day-ci/archive/20240207/[email protected]/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240207/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

sparse warnings: (new ones prefixed by >>)
drivers/bus/mhi/host/init.c: note: in included file (through include/trace/trace_events.h, include/trace/define_trace.h, drivers/bus/mhi/host/trace.h):

>> include/trace/../../drivers/bus/mhi/host/trace.h:87:1: sparse: sparse: cast to restricted __le64
>> include/trace/../../drivers/bus/mhi/host/trace.h:87:1: sparse: sparse: restricted __le64 degrades to integer
>> include/trace/../../drivers/bus/mhi/host/trace.h:87:1: sparse: sparse: restricted __le64 degrades to integer
>> include/trace/../../drivers/bus/mhi/host/trace.h:87:1: sparse: sparse: cast to restricted __le32
>> include/trace/../../drivers/bus/mhi/host/trace.h:87:1: sparse: sparse: restricted __le32 degrades to integer
>> include/trace/../../drivers/bus/mhi/host/trace.h:87:1: sparse: sparse: restricted __le32 degrades to integer
>> include/trace/../../drivers/bus/mhi/host/trace.h:87:1: sparse: sparse: cast to restricted __le32
>> include/trace/../../drivers/bus/mhi/host/trace.h:87:1: sparse: sparse: restricted __le32 degrades to integer
>> include/trace/../../drivers/bus/mhi/host/trace.h:87:1: sparse: sparse: restricted __le32 degrades to integer

include/trace/../../drivers/bus/mhi/host/trace.h:169:1: sparse: sparse: cast to restricted __le32 include/trace/../../drivers/bus/mhi/host/trace.h:169:1: sparse: sparse: restricted __le32 degrades to integer include/trace/../../drivers/bus/mhi/host/trace.h:169:1: sparse: sparse: restricted __le32 degrades to integer include/trace/../../drivers/bus/mhi/host/trace.h:169:1: sparse: sparse: cast to restricted __le32 include/trace/../../drivers/bus/mhi/host/trace.h:169:1: sparse: sparse: restricted __le32 degrades to integer include/trace/../../drivers/bus/mhi/host/trace.h:169:1: sparse: sparse: restricted __le32 degrades to integer include/trace/../../drivers/bus/mhi/host/trace.h:169:1: sparse: sparse: cast to restricted __le64 include/trace/../../drivers/bus/mhi/host/trace.h:169:1: sparse: sparse: restricted __le64 degrades to integer include/trace/../../drivers/bus/mhi/host/trace.h:169:1: sparse: sparse: restricted __le64 degrades to integer drivers/bus/mhi/host/init.c: note: in included file (through include/linux/wait.h, include/linux/wait_bit.h, include/linux/fs.h, ...):
include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true

vim +87 include/trace/../../drivers/bus/mhi/host/trace.h

    86	
  > 87	TRACE_EVENT(mhi_gen_tre,
    88	
    89		TP_PROTO(struct mhi_controller *mhi_cntrl, struct mhi_chan *mhi_chan,
    90			 struct mhi_ring_element *mhi_tre),
    91	
    92		TP_ARGS(mhi_cntrl, mhi_chan, mhi_tre),
    93	
    94		TP_STRUCT__entry(
    95			__string(name, mhi_cntrl->mhi_dev->name)
    96			__field(int, ch_num)
    97			__field(void *, wp)
    98			__field(__le64, tre_ptr)
    99			__field(__le32, dword0)

100 __field(__le32, dword1)
101 ),
102
103 TP_fast_assign(
104 __assign_str(name, mhi_cntrl->mhi_dev->name);
105 __entry->ch_num = mhi_chan->chan;
106 __entry->wp = mhi_tre;
107 __entry->tre_ptr = mhi_tre->ptr;
108 __entry->dword0 = mhi_tre->dword[0];
109 __entry->dword1 = mhi_tre->dword[1];
110 ),
111
112 TP_printk("%s: Chan: %d TRE: 0x%p TRE buf: 0x%llx DWORD0: 0x%08x DWORD1: 0x%08x\n",
113 __get_str(name), __entry->ch_num, __entry->wp, __entry->tre_ptr,
114 __entry->dword0, __entry->dword1)
115 );
116

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki