* [linux-next:master 4243/11779] drivers/infiniband/hw/hns/./hns_roce_trace.h:46:1: sparse: sparse: cast to restricted __le32
@ 2025-05-16 20:00 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-16 20:00 UTC (permalink / raw)
To: Junxian Huang; +Cc: oe-kbuild-all, Leon Romanovsky
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 8566fc3b96539e3235909d6bdda198e1282beaed
commit: 6c98c86708063af509b82f35bfac9577b61b4a94 [4243/11779] RDMA/hns: Add trace for WQE dumping
config: loongarch-randconfig-r123-20250516 (https://download.01.org/0day-ci/archive/20250517/202505170327.TNOpreil-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20250517/202505170327.TNOpreil-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505170327.TNOpreil-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/infiniband/hw/hns/hns_roce_hw_v2.c: note: in included file (through include/trace/trace_events.h, include/trace/define_trace.h, drivers/infiniband/hw/hns/hns_roce_trace.h):
>> drivers/infiniband/hw/hns/./hns_roce_trace.h:46:1: sparse: sparse: cast to restricted __le32
>> drivers/infiniband/hw/hns/./hns_roce_trace.h:46:1: sparse: sparse: restricted __le32 degrades to integer
>> drivers/infiniband/hw/hns/./hns_roce_trace.h:46:1: sparse: sparse: restricted __le32 degrades to integer
vim +46 drivers/infiniband/hw/hns/./hns_roce_trace.h
34
35 DEFINE_EVENT(flush_head_template, hns_sq_flush_cqe,
36 TP_PROTO(unsigned long qpn, u32 pi,
37 enum hns_roce_trace_type type),
38 TP_ARGS(qpn, pi, type));
39 DEFINE_EVENT(flush_head_template, hns_rq_flush_cqe,
40 TP_PROTO(unsigned long qpn, u32 pi,
41 enum hns_roce_trace_type type),
42 TP_ARGS(qpn, pi, type));
43
44 #define MAX_SGE_PER_WQE 64
45 #define MAX_WQE_SIZE (MAX_SGE_PER_WQE * HNS_ROCE_SGE_SIZE)
> 46 DECLARE_EVENT_CLASS(wqe_template,
47 TP_PROTO(unsigned long qpn, u32 idx, void *wqe, u32 len,
48 u64 id, enum hns_roce_trace_type type),
49 TP_ARGS(qpn, idx, wqe, len, id, type),
50
51 TP_STRUCT__entry(__field(unsigned long, qpn)
52 __field(u32, idx)
53 __array(__le32, wqe,
54 MAX_WQE_SIZE / sizeof(__le32))
55 __field(u32, len)
56 __field(u64, id)
57 __field(enum hns_roce_trace_type, type)
58 ),
59
60 TP_fast_assign(__entry->qpn = qpn;
61 __entry->idx = idx;
62 __entry->id = id;
63 memcpy(__entry->wqe, wqe, len);
64 __entry->len = len / sizeof(__le32);
65 __entry->type = type;
66 ),
67
68 TP_printk("%s 0x%lx wqe(0x%x/0x%llx): %s",
69 trace_type_to_str(__entry->type),
70 __entry->qpn, __entry->idx, __entry->id,
71 __print_array(__entry->wqe, __entry->len,
72 sizeof(__le32)))
73 );
74
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-05-16 20:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-16 20:00 [linux-next:master 4243/11779] drivers/infiniband/hw/hns/./hns_roce_trace.h:46:1: sparse: sparse: cast to restricted __le32 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.