Re: [PATCH 2/8] firmware: arm_scmi: Introduce packet handling helpers
From: kernel test robot
Date: Mon Jul 08 2024 - 00:00:08 EST
Hi Cristian,
kernel test robot noticed the following build warnings:
[auto build test WARNING on soc/for-next]
[also build test WARNING on next-20240703]
[cannot apply to linus/master v6.10-rc7]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Cristian-Marussi/firmware-arm_scmi-Introduce-setup_shmem_iomap/20240707-082513
base: https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git for-next
patch link: https://lore.kernel.org/r/20240707002055.1835121-3-cristian.marussi%40arm.com
patch subject: [PATCH 2/8] firmware: arm_scmi: Introduce packet handling helpers
config: arm-randconfig-r111-20240708 (https://download.01.org/0day-ci/archive/20240708/202407081158.9B8bXpH0-lkp@xxxxxxxxx/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project a0c6b8aef853eedaa0980f07c0a502a5a8a9740e)
reproduce: (https://download.01.org/0day-ci/archive/20240708/202407081158.9B8bXpH0-lkp@xxxxxxxxx/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407081158.9B8bXpH0-lkp@xxxxxxxxx/
sparse warnings: (new ones prefixed by >>)
drivers/firmware/arm_scmi/shmem.c:171:16: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void * @@ got void [noderef] __iomem *[assigned] addr @@
drivers/firmware/arm_scmi/shmem.c:171:16: sparse: expected void *
drivers/firmware/arm_scmi/shmem.c:171:16: sparse: got void [noderef] __iomem *[assigned] addr
>> drivers/firmware/arm_scmi/shmem.c:183:24: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void [noderef] __iomem *( *setup_iomap )( ... ) @@ got void *( [noderef] __iomem * )( ... ) @@
drivers/firmware/arm_scmi/shmem.c:183:24: sparse: expected void [noderef] __iomem *( *setup_iomap )( ... )
drivers/firmware/arm_scmi/shmem.c:183:24: sparse: got void *( [noderef] __iomem * )( ... )
drivers/firmware/arm_scmi/shmem.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/xarray.h, ...):
include/linux/page-flags.h:240:46: sparse: sparse: self-comparison always evaluates to false
include/linux/page-flags.h:240:46: sparse: sparse: self-comparison always evaluates to false
vim +183 drivers/firmware/arm_scmi/shmem.c
173
174 const struct scmi_shared_mem_operations scmi_shmem_ops = {
175 .tx_prepare = shmem_tx_prepare,
176 .read_header = shmem_read_header,
177 .fetch_response = shmem_fetch_response,
178 .fetch_notification = shmem_fetch_notification,
179 .clear_channel = shmem_clear_channel,
180 .poll_done = shmem_poll_done,
181 .channel_free = shmem_channel_free,
182 .channel_intr_enabled = shmem_channel_intr_enabled,
> 183 .setup_iomap = shmem_setup_iomap,
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki