* [linux-next:master 4968/10499] drivers/pwm/pwm-raspberrypi-poe.c:69:24: sparse: sparse: incorrect type in initializer (different base types)
@ 2021-04-08 12:18 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-08 12:18 UTC (permalink / raw)
To: Nicolas Saenz Julienne
Cc: kbuild-all, Linux Memory Management List, Uwe Kleine-König
[-- Attachment #1: Type: text/plain, Size: 2319 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 5103a5be098c0dae5d4b057520d7e9f4c5570979
commit: 79caa362eab6569297210eda375d6ea358a81161 [4968/10499] pwm: Add Raspberry Pi Firmware based PWM bus
config: powerpc-randconfig-s031-20210408 (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.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.3-279-g6d5d9b42-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=79caa362eab6569297210eda375d6ea358a81161
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 79caa362eab6569297210eda375d6ea358a81161
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/pwm/pwm-raspberrypi-poe.c:69:24: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le32 [usertype] reg @@ got unsigned int [usertype] reg @@
drivers/pwm/pwm-raspberrypi-poe.c:69:24: sparse: expected restricted __le32 [usertype] reg
drivers/pwm/pwm-raspberrypi-poe.c:69:24: sparse: got unsigned int [usertype] reg
vim +69 drivers/pwm/pwm-raspberrypi-poe.c
64
65 static int raspberrypi_pwm_get_property(struct rpi_firmware *firmware,
66 u32 reg, u32 *val)
67 {
68 struct raspberrypi_pwm_prop msg = {
> 69 .reg = reg
70 };
71 int ret;
72
73 ret = rpi_firmware_property(firmware, RPI_FIRMWARE_GET_POE_HAT_VAL,
74 &msg, sizeof(msg));
75 if (ret)
76 return ret;
77 if (msg.ret)
78 return -EIO;
79
80 *val = le32_to_cpu(msg.val);
81
82 return 0;
83 }
84
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34771 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-08 12:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-08 12:18 [linux-next:master 4968/10499] drivers/pwm/pwm-raspberrypi-poe.c:69:24: sparse: sparse: incorrect type in initializer (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;
as well as URLs for NNTP newsgroup(s).