[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202209051428.6vjCgKhu-lkp@intel.com>
Date: Mon, 5 Sep 2022 14:58:05 +0800
From: kernel test robot <lkp@...el.com>
To: Bjorn Andersson <bjorn.andersson@...aro.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Steev Klimaszewski <steev@...i.org>
Subject: [steev:c630-6.0.0-rc4 54/86]
drivers/power/supply/qcom_pmic_glink_power.c:520:30: sparse: sparse:
incorrect type in initializer (different base types)
tree: https://github.com/steev/linux c630-6.0.0-rc4
head: 20d0898957b293f43b9ee4dd6890dc8a6fa90576
commit: 880f7e363001b4736369ed5ed2341e0706f917c1 [54/86] power: supply: Introduce Qualcomm PMIC GLINK power supply
config: loongarch-randconfig-s033-20220905
compiler: loongarch64-linux-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/steev/linux/commit/880f7e363001b4736369ed5ed2341e0706f917c1
git remote add steev https://github.com/steev/linux
git fetch --no-tags steev c630-6.0.0-rc4
git checkout 880f7e363001b4736369ed5ed2341e0706f917c1
# 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=loongarch SHELL=/bin/bash drivers/power/supply/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/power/supply/qcom_pmic_glink_power.c:520:30: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le32 [usertype] owner @@ got int @@
drivers/power/supply/qcom_pmic_glink_power.c:520:30: sparse: expected restricted __le32 [usertype] owner
drivers/power/supply/qcom_pmic_glink_power.c:520:30: sparse: got int
>> drivers/power/supply/qcom_pmic_glink_power.c:521:29: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le32 [usertype] type @@ got int @@
drivers/power/supply/qcom_pmic_glink_power.c:521:29: sparse: expected restricted __le32 [usertype] type
drivers/power/supply/qcom_pmic_glink_power.c:521:29: sparse: got int
>> drivers/power/supply/qcom_pmic_glink_power.c:522:31: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le32 [usertype] opcode @@ got int @@
drivers/power/supply/qcom_pmic_glink_power.c:522:31: sparse: expected restricted __le32 [usertype] opcode
drivers/power/supply/qcom_pmic_glink_power.c:522:31: sparse: got int
vim +520 drivers/power/supply/qcom_pmic_glink_power.c
516
517 static int pmic_glink_power_enable_notifications(struct pmic_glink_power *pgp)
518 {
519 struct pmic_glink_bat_enable_notifications req = {
> 520 .hdr.owner = PMIC_GLINK_OWNER_BC,
> 521 .hdr.type = PMIC_GLINK_NOTIFY,
> 522 .hdr.opcode = BC_SET_NOTIFY_REQ,
523 };
524
525 return pmic_glink_ps_send(pgp, &req, sizeof(req));
526 }
527
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (197796 bytes)
Powered by blists - more mailing lists