Re: [PATCH v4 08/10] vfio-pci/zdev: Add a device feature for error information

From: kernel test robot
Date: Thu Sep 25 2025 - 04:05:19 EST


Hi Farhan,

kernel test robot noticed the following build warnings:

[auto build test WARNING on pci/next]
[also build test WARNING on pci/for-linus awilliam-vfio/next s390/features linus/master v6.17-rc7]
[cannot apply to awilliam-vfio/for-linus]
[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#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Farhan-Ali/PCI-Avoid-saving-error-values-for-config-space/20250925-012105
base: https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git next
patch link: https://lore.kernel.org/r/20250924171628.826-9-alifm%40linux.ibm.com
patch subject: [PATCH v4 08/10] vfio-pci/zdev: Add a device feature for error information
config: csky-randconfig-002-20250925 (https://download.01.org/0day-ci/archive/20250925/202509251506.Z5Ov6pYQ-lkp@xxxxxxxxx/config)
compiler: csky-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250925/202509251506.Z5Ov6pYQ-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202509251506.Z5Ov6pYQ-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

In file included from drivers/vfio/pci/vfio_pci_config.c:29:
>> drivers/vfio/pci/vfio_pci_priv.h:106:12: warning: 'vfio_pci_zdev_feature_err' defined but not used [-Wunused-function]
106 | static int vfio_pci_zdev_feature_err(struct vfio_device *device, u32 flags,
| ^~~~~~~~~~~~~~~~~~~~~~~~~


vim +/vfio_pci_zdev_feature_err +106 drivers/vfio/pci/vfio_pci_priv.h

105
> 106 static int vfio_pci_zdev_feature_err(struct vfio_device *device, u32 flags,
107 void __user *arg, size_t argsz)
108 {
109 return -ENODEV;
110 }
111 #endif
112

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