All of lore.kernel.org
 help / color / mirror / Atom feed
* [yiliu1765-iommufd:wip/iommufd_pasid-20240910 34/37] drivers/vfio/iommufd.c:208:13: warning: unused variable 'rc'
@ 2024-09-10 20:58 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-09-10 20:58 UTC (permalink / raw)
  To: Yi Liu, Kevin Tian; +Cc: oe-kbuild-all

tree:   https://github.com/yiliu1765/iommufd.git wip/iommufd_pasid-20240910
head:   47bd94563684b36d40cac3c558ca963539dd5980
commit: 9e5b89906ecb80bb5fb6c18a8c20f4bc185884bf [34/37] vfio-iommufd: Support pasid [at|de]tach for physical VFIO devices
config: arc-randconfig-002-20240911 (https://download.01.org/0day-ci/archive/20240911/202409110414.5ZRILNpy-lkp@intel.com/config)
compiler: arc-elf-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240911/202409110414.5ZRILNpy-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/202409110414.5ZRILNpy-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/vfio/iommufd.c: In function 'vfio_iommufd_physical_pasid_detach_ioas':
>> drivers/vfio/iommufd.c:208:13: warning: unused variable 'rc' [-Wunused-variable]
     208 |         int rc;
         |             ^~


vim +/rc +208 drivers/vfio/iommufd.c

   204	
   205	void vfio_iommufd_physical_pasid_detach_ioas(struct vfio_device *vdev,
   206						     u32 pasid)
   207	{
 > 208		int rc;
   209	
   210		lockdep_assert_held(&vdev->dev_set->lock);
   211	
   212		if (WARN_ON(!vdev->iommufd_device))
   213			return;
   214	
   215		if (!ida_exists(&vdev->pasids, pasid))
   216			return;
   217	
   218		iommufd_device_pasid_detach(vdev->iommufd_device, pasid);
   219		ida_free(&vdev->pasids, pasid);
   220	}
   221	EXPORT_SYMBOL_GPL(vfio_iommufd_physical_pasid_detach_ioas);
   222	

-- 
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-09-10 20:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-10 20:58 [yiliu1765-iommufd:wip/iommufd_pasid-20240910 34/37] drivers/vfio/iommufd.c:208:13: warning: unused variable 'rc' 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.