Re: [PATCH V1 5/5] vfio: block during VA suspend

kernel test robot
2021-01-05T18:09:20Z

[-- Attachment #1: Type: text/plain, Size: 2241 bytes --]

Hi Steve,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on vfio/next]
[also build test WARNING on v5.11-rc2 next-20210104]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url: https://github.com/0day-ci/linux/commits/Steve-Sistare/vfio-virtual-address-update/20210106-000752
base: https://github.com/awilliam/linux-vfio.git next
config: s390-randconfig-r015-20210105 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/f680b8156755f4465e94574d5421747561d23749
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Steve-Sistare/vfio-virtual-address-update/20210106-000752
git checkout f680b8156755f4465e94574d5421747561d23749
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/vfio/vfio_iommu_type1.c:503:6: warning: no previous prototype for 'vfio_vaddr_valid' [-Wmissing-prototypes]
503 | bool vfio_vaddr_valid(struct vfio_iommu *iommu, struct vfio_dma *dma)
| ^~~~~~~~~~~~~~~~

vim +/vfio_vaddr_valid +503 drivers/vfio/vfio_iommu_type1.c

501
502
> 503 bool vfio_vaddr_valid(struct vfio_iommu *iommu, struct vfio_dma *dma)
504 {
505 while (dma->suspended) {
506 mutex_unlock(&iommu->lock);
507 msleep_interruptible(10);
508 mutex_lock(&iommu->lock);
509 if (kthread_should_stop() || !vfio_iommu_contained(iommu) ||
510 fatal_signal_pending(current)) {
511 return false;
512 }
513 }
514 return true;
515 }
516

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 28839 bytes --]