All of lore.kernel.org
 help / color / mirror / Atom feed
* [vivek-drm-tip:vfio_dmabuf_v1 7/7] drivers/vfio/pci/dma_buf.c:317:40: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2024-04-23  3:16 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-04-23  3:16 UTC (permalink / raw)
  To: Vivek Kasireddy; +Cc: oe-kbuild-all

tree:   https://gitlab.freedesktop.org/Vivek/drm-tip.git vfio_dmabuf_v1
head:   5ef225e951f7d39f11703af6060984e434c6dc4b
commit: 5ef225e951f7d39f11703af6060984e434c6dc4b [7/7] vfio/pci: Allow MMIO regions to be exported through dma-buf
config: x86_64-randconfig-123-20240423 (https://download.01.org/0day-ci/archive/20240423/202404231109.7NK4BRAU-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240423/202404231109.7NK4BRAU-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/202404231109.7NK4BRAU-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/vfio/pci/dma_buf.c:317:40: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct file [noderef] __rcu **f @@     got struct file ** @@
   drivers/vfio/pci/dma_buf.c:317:40: sparse:     expected struct file [noderef] __rcu **f
   drivers/vfio/pci/dma_buf.c:317:40: sparse:     got struct file **
   drivers/vfio/pci/dma_buf.c:336:40: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct file [noderef] __rcu **f @@     got struct file ** @@
   drivers/vfio/pci/dma_buf.c:336:40: sparse:     expected struct file [noderef] __rcu **f
   drivers/vfio/pci/dma_buf.c:336:40: sparse:     got struct file **

vim +317 drivers/vfio/pci/dma_buf.c

   308	
   309	void vfio_pci_dma_buf_move(struct vfio_pci_core_device *vdev, bool revoked)
   310	{
   311		struct vfio_pci_dma_buf *priv;
   312		struct vfio_pci_dma_buf *tmp;
   313	
   314		lockdep_assert_held_write(&vdev->memory_lock);
   315	
   316		list_for_each_entry_safe(priv, tmp, &vdev->dmabufs, dmabufs_elm) {
 > 317			if (!get_file_rcu(&priv->dmabuf->file))
   318				continue;
   319			if (priv->revoked != revoked) {
   320				dma_resv_lock(priv->dmabuf->resv, NULL);
   321				priv->revoked = revoked;
   322				dma_buf_move_notify(priv->dmabuf);
   323				dma_resv_unlock(priv->dmabuf->resv);
   324			}
   325			dma_buf_put(priv->dmabuf);
   326		}
   327	}
   328	

-- 
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:[~2024-04-23  3:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-23  3:16 [vivek-drm-tip:vfio_dmabuf_v1 7/7] drivers/vfio/pci/dma_buf.c:317:40: sparse: sparse: incorrect type in argument 1 (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.