tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 0cdb3579f1ee4c1e55acf8dfb0697b660067b1f8 commit: 40c31955e4e9ff268d21c0a8009e35f4cfaa167c [3252/5429] firmware: raspberrypi: Provide a helper to query a clock max rate config: arm-randconfig-s032-20221104 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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=40c31955e4e9ff268d21c0a8009e35f4cfaa167c 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 40c31955e4e9ff268d21c0a8009e35f4cfaa167c # 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 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/firmware/raspberrypi.c:234:17: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le32 [usertype] id @@ got unsigned int id @@ drivers/firmware/raspberrypi.c:234:17: sparse: expected restricted __le32 [usertype] id drivers/firmware/raspberrypi.c:234:17: sparse: got unsigned int id vim +234 drivers/firmware/raspberrypi.c 230 231 unsigned int rpi_firmware_clk_get_max_rate(struct rpi_firmware *fw, unsigned int id) 232 { 233 struct rpi_firmware_clk_rate_request msg = > 234 RPI_FIRMWARE_CLK_RATE_REQUEST(id); 235 int ret; 236 237 ret = rpi_firmware_property(fw, RPI_FIRMWARE_GET_MAX_CLOCK_RATE, 238 &msg, sizeof(msg)); 239 if (ret) 240 /* 241 * If our firmware doesn't support that operation, or fails, we 242 * assume the maximum clock rate is absolute maximum we can 243 * store over our type. 244 */ 245 return UINT_MAX; 246 247 return le32_to_cpu(msg.rate); 248 } 249 EXPORT_SYMBOL_GPL(rpi_firmware_clk_get_max_rate); 250 -- 0-DAY CI Kernel Test Service https://01.org/lkp