From: kernel test robot <[email protected]>
To: Ammar Faizi <[email protected]>,
GNU/Weeb Mailing List <[email protected]>
Cc: [email protected]
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: <[email protected]> (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/[email protected]/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.0
reproduce:
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 <[email protected]>
| Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/
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
601
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;
607
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;
613
> 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;
619
620 *sensor_config = get_unaligned_le64(t->rx.buf);
621 s->sensor_config = *sensor_config;
622 }
623
624 scmi_xfer_put(handle, t);
625 return ret;
626 }
627
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
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:
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 \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
/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