tree:
https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
randconfig-v5.12
head: fd21c2581b744639b5207c11651ab40abf13701a
commit: aeb172ab4efb38a4817cf99c9c977d89130c3937 [390/597] pci: s390: remove redundant
zbus->bus member
config: s390-allyesconfig (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://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/commi...
git remote add arnd-playground
https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
git fetch --no-tags arnd-playground randconfig-v5.12
git checkout aeb172ab4efb38a4817cf99c9c977d89130c3937
# 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 errors (new ones prefixed by >>):
arch/s390/pci/pci_iov.c: In function 'zpci_iov_setup_virtfn':
> arch/s390/pci/pci_iov.c:84:28: error: 'struct zpci_bus'
has no member named 'bus'
84 | pdev = pci_get_slot(zbus->bus,
zdev->devfn);
| ^~
vim +84 arch/s390/pci/pci_iov.c
abb95b7550f88b Niklas Schnelle 2020-08-17 62
abb95b7550f88b Niklas Schnelle 2020-08-17 63 int zpci_iov_setup_virtfn(struct zpci_bus
*zbus, struct pci_dev *virtfn, int vfn)
abb95b7550f88b Niklas Schnelle 2020-08-17 64 {
abb95b7550f88b Niklas Schnelle 2020-08-17 65 int i, cand_devfn;
abb95b7550f88b Niklas Schnelle 2020-08-17 66 struct zpci_dev *zdev;
abb95b7550f88b Niklas Schnelle 2020-08-17 67 struct pci_dev *pdev;
abb95b7550f88b Niklas Schnelle 2020-08-17 68 int vfid = vfn - 1; /* Linux'
vfid's start at 0 vfn at 1*/
abb95b7550f88b Niklas Schnelle 2020-08-17 69 int rc = 0;
abb95b7550f88b Niklas Schnelle 2020-08-17 70
abb95b7550f88b Niklas Schnelle 2020-08-17 71 if (!zbus->multifunction)
abb95b7550f88b Niklas Schnelle 2020-08-17 72 return 0;
abb95b7550f88b Niklas Schnelle 2020-08-17 73
abb95b7550f88b Niklas Schnelle 2020-08-17 74 /* If the parent PF for the given VF is
also configured in the
abb95b7550f88b Niklas Schnelle 2020-08-17 75 * instance, it must be on the same zbus.
abb95b7550f88b Niklas Schnelle 2020-08-17 76 * We can then identify the parent PF by
checking what
abb95b7550f88b Niklas Schnelle 2020-08-17 77 * devfn the VF would have if it belonged
to that PF using the PF's
abb95b7550f88b Niklas Schnelle 2020-08-17 78 * stride and offset. Only if this
candidate devfn matches the
abb95b7550f88b Niklas Schnelle 2020-08-17 79 * actual devfn will we link both
functions.
abb95b7550f88b Niklas Schnelle 2020-08-17 80 */
abb95b7550f88b Niklas Schnelle 2020-08-17 81 for (i = 0; i < ZPCI_FUNCTIONS_PER_BUS;
i++) {
abb95b7550f88b Niklas Schnelle 2020-08-17 82 zdev = zbus->function[i];
abb95b7550f88b Niklas Schnelle 2020-08-17 83 if (zdev && zdev->is_physfn)
{
abb95b7550f88b Niklas Schnelle 2020-08-17 @84 pdev = pci_get_slot(zbus->bus,
zdev->devfn);
:::::: The code at line 84 was first introduced by commit
:::::: abb95b7550f88bfb77081601f80662a259f2d143 s390/pci: consolidate SR-IOV specific
code
:::::: TO: Niklas Schnelle <schnelle(a)linux.ibm.com>
:::::: CC: Vasily Gorbik <gor(a)linux.ibm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org