tree:
https://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git features
head: 1a80b54d1ce1556bba6a8d8cd9384d6a9dcb641a
commit: abb95b7550f88bfb77081601f80662a259f2d143 [16/25] s390/pci: consolidate SR-IOV
specific code
config: s390-randconfig-r021-20200913 (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
git checkout abb95b7550f88bfb77081601f80662a259f2d143
# 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(a)intel.com>
All warnings (new ones prefixed by >>):
> arch/s390/pci/pci_iov.c:23:6: warning: no previous prototype for
'zpci_iov_map_resources' [-Wmissing-prototypes]
23 | void
zpci_iov_map_resources(struct pci_dev *pdev)
| ^~~~~~~~~~~~~~~~~~~~~~
> arch/s390/pci/pci_iov.c:38:6: warning: no previous prototype for
'zpci_iov_remove_virtfn' [-Wmissing-prototypes]
38 | void
zpci_iov_remove_virtfn(struct pci_dev *pdev, int vfn)
| ^~~~~~~~~~~~~~~~~~~~~~
> arch/s390/pci/pci_iov.c:61:5: warning: no previous prototype for
'zpci_iov_setup_virtfn' [-Wmissing-prototypes]
61 | int
zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn)
| ^~~~~~~~~~~~~~~~~~~~~
#
https://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git/commit/?id...
git remote add s390
https://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git
git fetch --no-tags s390 features
git checkout abb95b7550f88bfb77081601f80662a259f2d143
vim +/zpci_iov_map_resources +23 arch/s390/pci/pci_iov.c
22
23 void zpci_iov_map_resources(struct pci_dev *pdev)
24 {
25 resource_size_t len;
26 int i;
27
28 for (i = 0; i < PCI_SRIOV_NUM_BARS; i++) {
29 int bar = i + PCI_IOV_RESOURCES;
30
31 len = pci_resource_len(pdev, bar);
32 if (!len)
33 continue;
34 pdev->resource[bar].parent = &iov_res;
35 }
36 }
37
38 void zpci_iov_remove_virtfn(struct pci_dev *pdev, int vfn)
39 {
40 pci_lock_rescan_remove();
41 /* Linux' vfid's start at 0 vfn at 1 */
42 pci_iov_remove_virtfn(pdev->physfn, vfn - 1);
43 pci_unlock_rescan_remove();
44 }
45
46 static int zpci_iov_link_virtfn(struct pci_dev *pdev, struct pci_dev *virtfn, int
vfid)
47 {
48 int rc;
49
50 rc = pci_iov_sysfs_link(pdev, virtfn, vfid);
51 if (rc)
52 return rc;
53
54 virtfn->is_virtfn = 1;
55 virtfn->multifunction = 0;
56 virtfn->physfn = pci_dev_get(pdev);
57
58 return 0;
59 }
60
61 int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev
*virtfn, int vfn)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org