[PATCH v2 2/3] PCI: Allow extending VF BAR within original resource boundary
kernel test robot
lkp at intel.com
Fri Sep 20 11:19:39 UTC 2024
Hi Michał,
kernel test robot noticed the following build warnings:
[auto build test WARNING on pci/for-linus]
[also build test WARNING on drm-xe/drm-xe-next drm/drm-next drm-exynos/exynos-drm-next drm-intel/for-linux-next drm-intel/for-linux-next-fixes drm-misc/drm-misc-next drm-tip/drm-tip linus/master v6.11 next-20240920]
[cannot apply to pci/next]
[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/Micha-Winiarski/PCI-Add-support-for-VF-Resizable-Bar-extended-cap/20240920-064112
base: https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git for-linus
patch link: https://lore.kernel.org/r/20240919223557.1897608-3-michal.winiarski%40intel.com
patch subject: [PATCH v2 2/3] PCI: Allow extending VF BAR within original resource boundary
config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20240920/202409201934.yM9hVUai-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 8663a75fa2f31299ab8d1d90288d9df92aadee88)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240920/202409201934.yM9hVUai-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 at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409201934.yM9hVUai-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from arch/arm/mm/iomap.c:9:
>> include/linux/pci.h:2421:3: warning: void function 'pci_iov_resource_extend' should not return a value [-Wreturn-mismatch]
2421 | { return -ENODEV; }
| ^ ~~~~~~~
In file included from arch/arm/mm/iomap.c:9:
In file included from include/linux/pci.h:2672:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:8:
In file included from include/linux/mm.h:2228:
include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
514 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
2 warnings generated.
vim +/pci_iov_resource_extend +2421 include/linux/pci.h
2397
2398 static inline int pci_iov_sysfs_link(struct pci_dev *dev,
2399 struct pci_dev *virtfn, int id)
2400 {
2401 return -ENODEV;
2402 }
2403 static inline int pci_iov_add_virtfn(struct pci_dev *dev, int id)
2404 {
2405 return -ENOSYS;
2406 }
2407 static inline void pci_iov_remove_virtfn(struct pci_dev *dev,
2408 int id) { }
2409 static inline void pci_disable_sriov(struct pci_dev *dev) { }
2410 static inline int pci_num_vf(struct pci_dev *dev) { return 0; }
2411 static inline int pci_vfs_assigned(struct pci_dev *dev)
2412 { return 0; }
2413 static inline int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs)
2414 { return 0; }
2415 static inline int pci_sriov_get_totalvfs(struct pci_dev *dev)
2416 { return 0; }
2417 #define pci_sriov_configure_simple NULL
2418 static inline resource_size_t pci_iov_resource_size(struct pci_dev *dev, int resno)
2419 { return 0; }
2420 static inline void pci_iov_resource_extend(struct pci_dev *dev, int resno, bool enable)
> 2421 { return -ENODEV; }
2422 static inline void pci_vf_drivers_autoprobe(struct pci_dev *dev, bool probe) { }
2423 #endif
2424
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the dri-devel
mailing list