From: kernel test robot <lkp@intel.com>
To: Yi Liu <yi.l.liu@intel.com>, Kevin Tian <kevin.tian@intel.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [yiliu1765-iommufd:wip/iommufd_pasid-20240910 34/37] drivers/vfio/iommufd.c:208:13: warning: unused variable 'rc'
Date: Wed, 11 Sep 2024 04:58:54 +0800 [thread overview]
Message-ID: <202409110414.5ZRILNpy-lkp@intel.com> (raw)
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
reply other threads:[~2024-09-10 20:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202409110414.5ZRILNpy-lkp@intel.com \
--to=lkp@intel.com \
--cc=kevin.tian@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=yi.l.liu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.