linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Bjorn Andersson <andersson@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev,
	Linux Memory Management List <linux-mm@kvack.org>,
	Chris Lew <quic_clew@quicinc.com>
Subject: [linux-next:master 4042/4667] drivers/rpmsg/qcom_glink_native.c:736:9: sparse: sparse: incorrect type in argument 5 (different base types)
Date: Wed, 14 Aug 2024 22:00:27 +0800	[thread overview]
Message-ID: <202408142123.xFCAwyNh-lkp@intel.com> (raw)

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


                 reply	other threads:[~2024-08-14 14: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=202408142123.xFCAwyNh-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andersson@kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=quic_clew@quicinc.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox