* [linux-next:master 4042/4667] drivers/rpmsg/qcom_glink_native.c:736:9: sparse: sparse: incorrect type in argument 5 (different base types)
@ 2024-08-14 14:00 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-08-14 14:00 UTC (permalink / raw)
To: Bjorn Andersson; +Cc: oe-kbuild-all, Linux Memory Management List, Chris Lew
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 320eb81df4f6c1a1814fd02ebb4ba41eb80a3c7e
commit: 34f79c11fb2f31ba05f13e42b936b3eae1783d40 [4042/4667] rpmsg: glink: Introduce packet tracepoints
config: arm64-randconfig-r113-20240814 (https://download.01.org/0day-ci/archive/20240814/202408142123.xFCAwyNh-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce: (https://download.01.org/0day-ci/archive/20240814/202408142123.xFCAwyNh-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/202408142123.xFCAwyNh-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/rpmsg/qcom_glink_native.c:414:9: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned int version @@ got restricted __le16 [assigned] [usertype] param1 @@
drivers/rpmsg/qcom_glink_native.c:414:9: sparse: expected unsigned int version
drivers/rpmsg/qcom_glink_native.c:414:9: sparse: got restricted __le16 [assigned] [usertype] param1
drivers/rpmsg/qcom_glink_native.c:414:9: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected unsigned int features @@ got restricted __le32 [assigned] [usertype] param2 @@
drivers/rpmsg/qcom_glink_native.c:414:9: sparse: expected unsigned int features
drivers/rpmsg/qcom_glink_native.c:414:9: sparse: got restricted __le32 [assigned] [usertype] param2
>> drivers/rpmsg/qcom_glink_native.c:736:9: sparse: sparse: incorrect type in argument 5 (different base types) @@ expected unsigned long [usertype] count @@ got restricted __le32 [assigned] [usertype] count @@
drivers/rpmsg/qcom_glink_native.c:736:9: sparse: expected unsigned long [usertype] count
drivers/rpmsg/qcom_glink_native.c:736:9: sparse: got restricted __le32 [assigned] [usertype] count
>> drivers/rpmsg/qcom_glink_native.c:736:9: sparse: sparse: incorrect type in argument 6 (different base types) @@ expected unsigned long [usertype] size @@ got restricted __le32 [assigned] [usertype] size @@
drivers/rpmsg/qcom_glink_native.c:736:9: sparse: expected unsigned long [usertype] size
drivers/rpmsg/qcom_glink_native.c:736:9: sparse: got restricted __le32 [assigned] [usertype] size
drivers/rpmsg/qcom_glink_native.c:736:9: sparse: sparse: incorrect type in argument 7 (different base types) @@ expected unsigned int [usertype] liid @@ got restricted __le32 [assigned] [usertype] liid @@
drivers/rpmsg/qcom_glink_native.c:736:9: sparse: expected unsigned int [usertype] liid
drivers/rpmsg/qcom_glink_native.c:736:9: sparse: got restricted __le32 [assigned] [usertype] liid
drivers/rpmsg/qcom_glink_native.c:930:9: sparse: sparse: restricted __le16 degrades to integer
>> drivers/rpmsg/qcom_glink_native.c:1063:9: sparse: sparse: incorrect type in argument 6 (different base types) @@ expected unsigned long [usertype] size @@ got restricted __le32 @@
drivers/rpmsg/qcom_glink_native.c:1063:9: sparse: expected unsigned long [usertype] size
drivers/rpmsg/qcom_glink_native.c:1063:9: sparse: got restricted __le32
drivers/rpmsg/qcom_glink_native.c:1063:9: sparse: sparse: incorrect type in argument 7 (different base types) @@ expected unsigned int [usertype] liid @@ got restricted __le32 @@
drivers/rpmsg/qcom_glink_native.c:1063:9: sparse: expected unsigned int [usertype] liid
drivers/rpmsg/qcom_glink_native.c:1063:9: sparse: got restricted __le32
drivers/rpmsg/qcom_glink_native.c: note: in included file (through include/linux/radix-tree.h, include/linux/idr.h):
include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
vim +736 drivers/rpmsg/qcom_glink_native.c
707
708 /**
709 * qcom_glink_advertise_intent - convert an rx intent cmd to wire format and
710 * transmit
711 * @glink: The transport to transmit on.
712 * @channel: The local channel
713 * @intent: The intent to pass on to remote.
714 *
715 * Return: 0 on success or standard Linux error code.
716 */
717 static int qcom_glink_advertise_intent(struct qcom_glink *glink,
718 struct glink_channel *channel,
719 struct glink_core_rx_intent *intent)
720 {
721 struct command {
722 __le16 id;
723 __le16 lcid;
724 __le32 count;
725 __le32 size;
726 __le32 liid;
727 } __packed;
728 struct command cmd;
729
730 cmd.id = cpu_to_le16(GLINK_CMD_INTENT);
731 cmd.lcid = cpu_to_le16(channel->lcid);
732 cmd.count = cpu_to_le32(1);
733 cmd.size = cpu_to_le32(intent->size);
734 cmd.liid = cpu_to_le32(intent->id);
735
> 736 trace_qcom_glink_cmd_intent_tx(glink->label, channel->name,
737 channel->lcid, channel->rcid,
738 cmd.count, cmd.size, cmd.liid);
739
740 qcom_glink_tx(glink, &cmd, sizeof(cmd), NULL, 0, true);
741
742 return 0;
743 }
744
--
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:[~2024-08-14 14:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-14 14:00 [linux-next:master 4042/4667] drivers/rpmsg/qcom_glink_native.c:736:9: sparse: sparse: incorrect type in argument 5 (different base types) kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox