From: kernel test robot <lkp@intel.com>
To: Junxian Huang <huangjunxian6@hisilicon.com>
Cc: oe-kbuild-all@lists.linux.dev, Leon Romanovsky <leon@kernel.org>
Subject: [linux-next:master 4243/11779] drivers/infiniband/hw/hns/./hns_roce_trace.h:46:1: sparse: sparse: cast to restricted __le32
Date: Sat, 17 May 2025 04:00:50 +0800 [thread overview]
Message-ID: <202505170327.TNOpreil-lkp@intel.com> (raw)
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
reply other threads:[~2025-05-16 20:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202505170327.TNOpreil-lkp@intel.com \
--to=lkp@intel.com \
--cc=huangjunxian6@hisilicon.com \
--cc=leon@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.