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@xxxxxxxxx> 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@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip