All of lore.kernel.org
 help / color / mirror / Atom feed
* [jfern:nova-core-experiments 231/411] drivers/vfio/pci/nvidia-vgpu/vgpu_mgr.c:24:15: sparse: sparse: incorrect type in assignment (different address spaces)
@ 2025-03-08  7:32 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-08  7:32 UTC (permalink / raw)
  To: Zhi Wang; +Cc: oe-kbuild-all, Dave Airlie

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git nova-core-experiments
head:   3b93174b3502247b0c46bd54a7cf5f4105274edb
commit: 09de2f1993ad7c90f7cdf93e32d29d14f92e7b0b [231/411] vfio/vgpu_mgr: introduce vGPU host RPC channel
config: powerpc-randconfig-r112-20250308 (https://download.01.org/0day-ci/archive/20250308/202503081504.RNQMZqra-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce: (https://download.01.org/0day-ci/archive/20250308/202503081504.RNQMZqra-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503081504.RNQMZqra-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   drivers/vfio/pci/nvidia-vgpu/vgpu_mgr.c:8:1: sparse: sparse: symbol 'vgpu_mgr_attach_lock' was not declared. Should it be static?
>> drivers/vfio/pci/nvidia-vgpu/vgpu_mgr.c:24:15: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *vaddr @@     got void [noderef] __iomem * @@
   drivers/vfio/pci/nvidia-vgpu/vgpu_mgr.c:24:15: sparse:     expected void *vaddr
   drivers/vfio/pci/nvidia-vgpu/vgpu_mgr.c:24:15: sparse:     got void [noderef] __iomem *
>> drivers/vfio/pci/nvidia-vgpu/vgpu_mgr.c:28:30: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void [noderef] __iomem *bar0_vaddr @@     got void *vaddr @@
   drivers/vfio/pci/nvidia-vgpu/vgpu_mgr.c:28:30: sparse:     expected void [noderef] __iomem *bar0_vaddr
   drivers/vfio/pci/nvidia-vgpu/vgpu_mgr.c:28:30: sparse:     got void *vaddr

vim +24 drivers/vfio/pci/nvidia-vgpu/vgpu_mgr.c

    14	
    15	static int map_pf_mmio(struct nvidia_vgpu_mgr *vgpu_mgr)
    16	{
    17		struct pci_dev *pdev = vgpu_mgr->pdev;
    18		resource_size_t start, size;
    19		void *vaddr;
    20	
    21		start = pci_resource_start(pdev, 0);
    22		size = pci_resource_len(pdev, 0);
    23	
  > 24		vaddr = ioremap(start, size);
    25		if (!vaddr)
    26			return -ENOMEM;
    27	
  > 28		vgpu_mgr->bar0_vaddr = vaddr;
    29	
    30		return 0;
    31	}
    32	

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

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

only message in thread, other threads:[~2025-03-08  7:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-08  7:32 [jfern:nova-core-experiments 231/411] drivers/vfio/pci/nvidia-vgpu/vgpu_mgr.c:24:15: sparse: sparse: incorrect type in assignment (different address spaces) kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.