tree:
https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
pci-probe-rework-20210320
head: 0f62dd81d92215e38f654f21e515888fbb2b580c
commit: 7a22028cb63a45687bfd4254db6c99d96c73eaa5 [22/24] pci: move PCI_PROBE_ONLY flag
into host_bridge
config: mips-tb0287_defconfig (attached as .config)
compiler: mipsel-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 pci-probe-rework-20210320
git checkout 7a22028cb63a45687bfd4254db6c99d96c73eaa5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
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/mips/pci/pci-legacy.c: In function 'pcibios_fixup_bus':
> arch/mips/pci/pci-legacy.c:297:24: error: expected identifier or
'(' before '->' token
297 | struct
pci_host_bridge->bridge = pci_find_host_bridge(bus);
| ^~
> arch/mips/pci/pci-legacy.c:299:6: error: 'bridge'
undeclared (first use in this function)
299 | if (bridge->probe_only
&& dev &&
| ^~~~~~
arch/mips/pci/pci-legacy.c:299:6: note: each undeclared identifier is reported only
once for each function it appears in
vim +297 arch/mips/pci/pci-legacy.c
293
294 void pcibios_fixup_bus(struct pci_bus *bus)
295 {
296 struct pci_dev *dev = bus->self;
297 struct pci_host_bridge->bridge = pci_find_host_bridge(bus);
298
299 if (bridge->probe_only && dev &&
300 (dev->class >> 8) == PCI_CLASS_BRIDGE_PCI) {
301 pci_read_bridge_bases(bus);
302 }
303 }
304
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org