oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ammar Faizi <ammarfaizi2@gnuweeb.org>,
	GNU/Weeb Mailing List <gwml@vger.gnuweeb.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [ammarfaizi2-block:google/android/kernel/common/android-gs-raviole-5.10-s-v2-beta-3 1458/9999] drivers/firmware/arm_scmi/sensors.c:614:28: sparse: sparse: incorrect type in argument 1 (different base types)
Date: Thu, 30 Mar 2023 14:38:44 +0800	[thread overview]
Message-ID: <202303301414.1lEL2Mon-lkp@intel.com> (raw)

tree:   https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android-gs-raviole-5.10-s-v2-beta-3
head:   51e133b6e4eb00703d3b3fe71cc2447ebd9fb4a8
commit: ac18ef8d266d19126d544393120ef3da7f51c684 [1458/9999] UPSTREAM: firmware: arm_scmi: Add SCMI v3.0 sensor configuration support
config: arm-randconfig-s033-20230326 (https://download.01.org/0day-ci/archive/20230330/202303301414.1lEL2Mon-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.0
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-39-gce1a6720-dirty
        # https://github.com/ammarfaizi2/linux-block/commit/ac18ef8d266d19126d544393120ef3da7f51c684
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android-gs-raviole-5.10-s-v2-beta-3
        git checkout ac18ef8d266d19126d544393120ef3da7f51c684
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm SHELL=/bin/bash drivers/firmware/arm_scmi/ fs/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303301414.1lEL2Mon-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/firmware/arm_scmi/sensors.c:614:28: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] val @@     got restricted __le32 [usertype] @@
   drivers/firmware/arm_scmi/sensors.c:614:28: sparse:     expected unsigned int [usertype] val
   drivers/firmware/arm_scmi/sensors.c:614:28: sparse:     got restricted __le32 [usertype]

vim +614 drivers/firmware/arm_scmi/sensors.c

   602	static int scmi_sensor_config_get(const struct scmi_handle *handle,
   603					  u32 sensor_id, u32 *sensor_config)
   604	{
   605		int ret;
   606		struct scmi_xfer *t;
   608		ret = scmi_xfer_get_init(handle, SENSOR_CONFIG_GET,
   609					 SCMI_PROTOCOL_SENSOR, sizeof(__le32),
   610					 sizeof(__le32), &t);
   611		if (ret)
   612			return ret;
 > 614		put_unaligned_le32(cpu_to_le32(sensor_id), t->tx.buf);
   615		ret = scmi_do_xfer(handle, t);
   616		if (!ret) {
   617			struct sensors_info *si = handle->sensor_priv;
   618			struct scmi_sensor_info *s = si->sensors + sensor_id;
   620			*sensor_config = get_unaligned_le64(t->rx.buf);
   621			s->sensor_config = *sensor_config;
   622		}
   624		scmi_xfer_put(handle, t);
   625		return ret;
   626	}

0-DAY CI Kernel Test Service

                 reply	other threads:[~2023-03-30  6:39 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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202303301414.1lEL2Mon-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ammarfaizi2@gnuweeb.org \
    --cc=gwml@vger.gnuweeb.org \
    --cc=oe-kbuild-all@lists.linux.dev \


* 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;
as well as URLs for NNTP newsgroup(s).