tree:
https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
pci-probe-rework-20210320
head: 7339be76e8b2bf033b46af22922fd3ab88c122d2
commit: 09d4fafeb5efb4b5464774682645b93a6eb18293 [22/24] pci: move PCI_PROBE_ONLY flag
into host_bridge
config: alpha-randconfig-r024-20210321 (attached as .config)
compiler: alpha-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 09d4fafeb5efb4b5464774682645b93a6eb18293
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
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/alpha/kernel/pci.c: In function 'pcibios_fixup_bus':
> arch/alpha/kernel/pci.c:254:25: error: expected identifier or
'(' before '=' token
254 | struct pci_host_bridge =
pci_find_host_bridge(bus);
| ^
> arch/alpha/kernel/pci.c:256:6: error: 'bridge' undeclared
(first use in this function)
256 | if (bridge->probe_only && dev
&&
| ^~~~~~
arch/alpha/kernel/pci.c:256:6: note: each undeclared identifier is reported only once
for each function it appears in
arch/alpha/kernel/pci.c: At top level:
arch/alpha/kernel/pci.c:283:1: warning: no previous prototype for
'pcibios_claim_one_bus' [-Wmissing-prototypes]
283 | pcibios_claim_one_bus(struct pci_bus *b)
| ^~~~~~~~~~~~~~~~~~~~~
vim +254 arch/alpha/kernel/pci.c
250
251 void pcibios_fixup_bus(struct pci_bus *bus)
252 {
253 struct pci_dev *dev = bus->self;
254 struct pci_host_bridge = pci_find_host_bridge(bus);
255
256 if (bridge->probe_only && dev &&
257 (dev->class >> 8) == PCI_CLASS_BRIDGE_PCI) {
258 pci_read_bridge_bases(bus);
259 }
260
261 list_for_each_entry(dev, &bus->devices, bus_list) {
262 pdev_save_srm_config(dev);
263 }
264 }
265
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org