oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [arm-integrator:virt-to-pfn-v6.3-rc3-redux 6/8] drivers/tee/tee_shm.c:35:16: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2023-03-24 19:18 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-24 19:18 UTC (permalink / raw)
  To: Linus Walleij; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git virt-to-pfn-v6.3-rc3-redux
head:   b5fe3402030c1ea066167108866fd21881895594
commit: 1df3431f995d6bb7a731770a7393c3011b52a581 [6/8] ARM: mm: Make virt_to_pfn() a static inline
config: arm-randconfig-s053-20230322 (https://download.01.org/0day-ci/archive/20230325/202303250333.lWWO1e3x-lkp@intel.com/config)
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/linusw/linux-integrator.git/commit/?id=1df3431f995d6bb7a731770a7393c3011b52a581
        git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
        git fetch --no-tags arm-integrator virt-to-pfn-v6.3-rc3-redux
        git checkout 1df3431f995d6bb7a731770a7393c3011b52a581
        # 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 olddefconfig
        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 drivers/gpu/drm/ drivers/tee/ kernel/trace/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303250333.lWWO1e3x-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/tee/tee_shm.c:35:16: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected void const *p @@     got unsigned long start @@
   drivers/tee/tee_shm.c:35:16: sparse:     expected void const *p
   drivers/tee/tee_shm.c:35:16: sparse:     got unsigned long start
--
   drivers/gpu/drm/drm_client.c: note: in included file (through arch/arm/include/asm/io.h, include/linux/io.h, include/linux/iosys-map.h):
   arch/arm/include/asm/memory.h:384:9: sparse: sparse: preprocessor token ARCH_PFN_OFFSET redefined
   drivers/gpu/drm/drm_client.c: note: in included file (through arch/arm/include/asm/page.h, arch/arm/include/asm/memory.h, arch/arm/include/asm/io.h, ...):
>> include/asm-generic/memory_model.h:15:9: sparse: this was the original definition
--
   drivers/gpu/drm/drm_gem.c: note: in included file (through arch/arm/include/asm/io.h, include/linux/io.h, include/linux/iosys-map.h, ...):
   arch/arm/include/asm/memory.h:384:9: sparse: sparse: preprocessor token ARCH_PFN_OFFSET redefined
   drivers/gpu/drm/drm_gem.c: note: in included file (through arch/arm/include/asm/page.h, arch/arm/include/asm/memory.h, arch/arm/include/asm/io.h, ...):
>> include/asm-generic/memory_model.h:15:9: sparse: this was the original definition
--
   drivers/gpu/drm/drm_print.c: note: in included file (through arch/arm/include/asm/io.h, include/linux/io.h):
   arch/arm/include/asm/memory.h:384:9: sparse: sparse: preprocessor token ARCH_PFN_OFFSET redefined
   drivers/gpu/drm/drm_print.c: note: in included file (through arch/arm/include/asm/page.h, arch/arm/include/asm/memory.h, arch/arm/include/asm/io.h, ...):
>> include/asm-generic/memory_model.h:15:9: sparse: this was the original definition
--
   drivers/gpu/drm/drm_prime.c: note: in included file (through arch/arm/include/asm/io.h, include/linux/io.h, include/linux/iosys-map.h, ...):
   arch/arm/include/asm/memory.h:384:9: sparse: sparse: preprocessor token ARCH_PFN_OFFSET redefined
   drivers/gpu/drm/drm_prime.c: note: in included file (through arch/arm/include/asm/page.h, arch/arm/include/asm/memory.h, arch/arm/include/asm/io.h, ...):
>> include/asm-generic/memory_model.h:15:9: sparse: this was the original definition
--
   drivers/gpu/drm/drm_gem_dma_helper.c: note: in included file (through arch/arm/include/asm/io.h, include/linux/io.h, include/linux/iosys-map.h, ...):
   arch/arm/include/asm/memory.h:384:9: sparse: sparse: preprocessor token ARCH_PFN_OFFSET redefined
   drivers/gpu/drm/drm_gem_dma_helper.c: note: in included file (through arch/arm/include/asm/page.h, arch/arm/include/asm/memory.h, arch/arm/include/asm/io.h, ...):
>> include/asm-generic/memory_model.h:15:9: sparse: this was the original definition
--
   drivers/gpu/drm/drm_gem_shmem_helper.c: note: in included file (through arch/arm/include/asm/io.h, include/linux/io.h, include/linux/iosys-map.h, ...):
   arch/arm/include/asm/memory.h:384:9: sparse: sparse: preprocessor token ARCH_PFN_OFFSET redefined
   drivers/gpu/drm/drm_gem_shmem_helper.c: note: in included file (through arch/arm/include/asm/page.h, arch/arm/include/asm/memory.h, arch/arm/include/asm/io.h, ...):
>> include/asm-generic/memory_model.h:15:9: sparse: this was the original definition
--
   drivers/gpu/drm/drm_format_helper.c: note: in included file (through arch/arm/include/asm/io.h, include/linux/io.h):
   arch/arm/include/asm/memory.h:384:9: sparse: sparse: preprocessor token ARCH_PFN_OFFSET redefined
   drivers/gpu/drm/drm_format_helper.c: note: in included file (through arch/arm/include/asm/page.h, arch/arm/include/asm/memory.h, arch/arm/include/asm/io.h, ...):
>> include/asm-generic/memory_model.h:15:9: sparse: this was the original definition
--
   drivers/gpu/drm/arm/display/komeda/komeda_dev.c: note: in included file (through arch/arm/include/asm/io.h, include/linux/io.h):
   arch/arm/include/asm/memory.h:384:9: sparse: sparse: preprocessor token ARCH_PFN_OFFSET redefined
   drivers/gpu/drm/arm/display/komeda/komeda_dev.c: note: in included file (through arch/arm/include/asm/page.h, arch/arm/include/asm/memory.h, arch/arm/include/asm/io.h, ...):
>> include/asm-generic/memory_model.h:15:9: sparse: this was the original definition
--
   drivers/gpu/drm/bridge/cadence/cdns-dsi-j721e.c: note: in included file (through arch/arm/include/asm/io.h, include/linux/io.h):
   arch/arm/include/asm/memory.h:384:9: sparse: sparse: preprocessor token ARCH_PFN_OFFSET redefined
   drivers/gpu/drm/bridge/cadence/cdns-dsi-j721e.c: note: in included file (through arch/arm/include/asm/page.h, arch/arm/include/asm/memory.h, arch/arm/include/asm/io.h, ...):
>> include/asm-generic/memory_model.h:15:9: sparse: this was the original definition
--
   drivers/gpu/drm/bridge/synopsys/dw-hdmi-gp-audio.c: note: in included file (through arch/arm/include/asm/io.h, include/linux/io.h):
   arch/arm/include/asm/memory.h:384:9: sparse: sparse: preprocessor token ARCH_PFN_OFFSET redefined
   drivers/gpu/drm/bridge/synopsys/dw-hdmi-gp-audio.c: note: in included file (through arch/arm/include/asm/page.h, arch/arm/include/asm/memory.h, arch/arm/include/asm/io.h, ...):
>> include/asm-generic/memory_model.h:15:9: sparse: this was the original definition
--
   drivers/gpu/drm/v3d/v3d_bo.c: note: in included file (through arch/arm/include/asm/io.h, include/linux/io.h, include/linux/iosys-map.h, ...):
   arch/arm/include/asm/memory.h:384:9: sparse: sparse: preprocessor token ARCH_PFN_OFFSET redefined
   drivers/gpu/drm/v3d/v3d_bo.c: note: in included file (through arch/arm/include/asm/page.h, arch/arm/include/asm/memory.h, arch/arm/include/asm/io.h, ...):
>> include/asm-generic/memory_model.h:15:9: sparse: this was the original definition
--
   drivers/gpu/drm/vkms/vkms_plane.c: note: in included file (through arch/arm/include/asm/io.h, include/linux/io.h, include/linux/iosys-map.h):
   arch/arm/include/asm/memory.h:384:9: sparse: sparse: preprocessor token ARCH_PFN_OFFSET redefined
   drivers/gpu/drm/vkms/vkms_plane.c: note: in included file (through arch/arm/include/asm/page.h, arch/arm/include/asm/memory.h, arch/arm/include/asm/io.h, ...):
>> include/asm-generic/memory_model.h:15:9: sparse: this was the original definition
--
   drivers/gpu/drm/vkms/vkms_writeback.c: note: in included file (through arch/arm/include/asm/io.h, include/linux/io.h, include/linux/iosys-map.h):
   arch/arm/include/asm/memory.h:384:9: sparse: sparse: preprocessor token ARCH_PFN_OFFSET redefined
   drivers/gpu/drm/vkms/vkms_writeback.c: note: in included file (through arch/arm/include/asm/page.h, arch/arm/include/asm/memory.h, arch/arm/include/asm/io.h, ...):
>> include/asm-generic/memory_model.h:15:9: sparse: this was the original definition
--
   drivers/gpu/drm/armada/armada_gem.c: note: in included file (through arch/arm/include/asm/io.h, include/linux/io.h, include/linux/iosys-map.h, ...):
   arch/arm/include/asm/memory.h:384:9: sparse: sparse: preprocessor token ARCH_PFN_OFFSET redefined
   drivers/gpu/drm/armada/armada_gem.c: note: in included file (through arch/arm/include/asm/page.h, arch/arm/include/asm/memory.h, arch/arm/include/asm/io.h, ...):
>> include/asm-generic/memory_model.h:15:9: sparse: this was the original definition
   drivers/gpu/drm/armada/armada_gem.c:63:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void volatile [noderef] __iomem *io_addr @@     got void *addr @@
   drivers/gpu/drm/armada/armada_gem.c:63:37: sparse:     expected void volatile [noderef] __iomem *io_addr
   drivers/gpu/drm/armada/armada_gem.c:63:37: sparse:     got void *addr
   drivers/gpu/drm/armada/armada_gem.c:185:28: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *addr @@     got void [noderef] __iomem * @@
   drivers/gpu/drm/armada/armada_gem.c:185:28: sparse:     expected void *addr
   drivers/gpu/drm/armada/armada_gem.c:185:28: sparse:     got void [noderef] __iomem *
--
   drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dspp.c: note: in included file (through arch/arm/include/asm/io.h, include/linux/io.h, drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h, ...):
   arch/arm/include/asm/memory.h:384:9: sparse: sparse: preprocessor token ARCH_PFN_OFFSET redefined
   drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dspp.c: note: in included file (through arch/arm/include/asm/page.h, arch/arm/include/asm/memory.h, arch/arm/include/asm/io.h, ...):
>> include/asm-generic/memory_model.h:15:9: sparse: this was the original definition
--
   drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c: note: in included file (through arch/arm/include/asm/io.h, include/linux/io.h, drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h, ...):
   arch/arm/include/asm/memory.h:384:9: sparse: sparse: preprocessor token ARCH_PFN_OFFSET redefined
   drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c: note: in included file (through arch/arm/include/asm/page.h, arch/arm/include/asm/memory.h, arch/arm/include/asm/io.h, ...):
>> include/asm-generic/memory_model.h:15:9: sparse: this was the original definition
--
   drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c: note: in included file (through arch/arm/include/asm/io.h, include/linux/io.h, drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h, ...):
   arch/arm/include/asm/memory.h:384:9: sparse: sparse: preprocessor token ARCH_PFN_OFFSET redefined
   drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c: note: in included file (through arch/arm/include/asm/page.h, arch/arm/include/asm/memory.h, arch/arm/include/asm/io.h, ...):
>> include/asm-generic/memory_model.h:15:9: sparse: this was the original definition
--
   drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c: note: in included file (through arch/arm/include/asm/io.h, include/linux/io.h, drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h, ...):
   arch/arm/include/asm/memory.h:384:9: sparse: sparse: preprocessor token ARCH_PFN_OFFSET redefined
   drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c: note: in included file (through arch/arm/include/asm/page.h, arch/arm/include/asm/memory.h, arch/arm/include/asm/io.h, ...):
>> include/asm-generic/memory_model.h:15:9: sparse: this was the original definition
--
   drivers/gpu/drm/msm/disp/dpu1/dpu_hw_vbif.c: note: in included file (through arch/arm/include/asm/io.h, include/linux/io.h, drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h, ...):
   arch/arm/include/asm/memory.h:384:9: sparse: sparse: preprocessor token ARCH_PFN_OFFSET redefined
   drivers/gpu/drm/msm/disp/dpu1/dpu_hw_vbif.c: note: in included file (through arch/arm/include/asm/page.h, arch/arm/include/asm/memory.h, arch/arm/include/asm/io.h, ...):
>> include/asm-generic/memory_model.h:15:9: sparse: this was the original definition
--
   drivers/gpu/drm/msm/msm_gem_prime.c: note: in included file (through arch/arm/include/asm/io.h, include/linux/io.h, include/linux/iosys-map.h, ...):
   arch/arm/include/asm/memory.h:384:9: sparse: sparse: preprocessor token ARCH_PFN_OFFSET redefined
   drivers/gpu/drm/msm/msm_gem_prime.c: note: in included file (through arch/arm/include/asm/page.h, arch/arm/include/asm/memory.h, arch/arm/include/asm/io.h, ...):
>> include/asm-generic/memory_model.h:15:9: sparse: this was the original definition

vim +35 drivers/tee/tee_shm.c

53e16519c2eccd Jens Wiklander 2022-02-04  24  
53e16519c2eccd Jens Wiklander 2022-02-04  25  static int shm_get_kernel_pages(unsigned long start, size_t page_count,
53e16519c2eccd Jens Wiklander 2022-02-04  26  				struct page **pages)
53e16519c2eccd Jens Wiklander 2022-02-04  27  {
0249a75b365911 Ira Weiny      2023-02-03  28  	struct page *page;
53e16519c2eccd Jens Wiklander 2022-02-04  29  	size_t n;
53e16519c2eccd Jens Wiklander 2022-02-04  30  
0249a75b365911 Ira Weiny      2023-02-03  31  	if (WARN_ON_ONCE(is_vmalloc_addr((void *)start) ||
0249a75b365911 Ira Weiny      2023-02-03  32  			 is_kmap_addr((void *)start)))
c83900393aa133 Ira Weiny      2023-02-03  33  		return -EINVAL;
3e47235eaee094 Phil Chang     2022-02-25  34  
0249a75b365911 Ira Weiny      2023-02-03 @35  	page = virt_to_page(start);
53e16519c2eccd Jens Wiklander 2022-02-04  36  	for (n = 0; n < page_count; n++) {
0249a75b365911 Ira Weiny      2023-02-03  37  		pages[n] = page + n;
0249a75b365911 Ira Weiny      2023-02-03  38  		get_page(pages[n]);
53e16519c2eccd Jens Wiklander 2022-02-04  39  	}
53e16519c2eccd Jens Wiklander 2022-02-04  40  
0249a75b365911 Ira Weiny      2023-02-03  41  	return page_count;
4300cd6374a519 John Hubbard   2020-08-24  42  }
4300cd6374a519 John Hubbard   2020-08-24  43  

:::::: The code at line 35 was first introduced by commit
:::::: 0249a75b365911f91b87935bc08a4795a6fa7dd0 tee: Remove call to get_kernel_pages()

:::::: TO: Ira Weiny <ira.weiny@intel.com>
:::::: CC: Jens Wiklander <jens.wiklander@linaro.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-24 19:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-24 19:18 [arm-integrator:virt-to-pfn-v6.3-rc3-redux 6/8] drivers/tee/tee_shm.c:35:16: sparse: sparse: incorrect type in argument 1 (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).