tree:
https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
randconfig-v5.12
head: fd21c2581b744639b5207c11651ab40abf13701a
commit: 130e1a398709fc631f3438fa57c450a4b392603e [397/597] pci: move PCI_PROBE_ONLY flag
into host_bridge
config: alpha-defconfig (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 randconfig-v5.12
git checkout 130e1a398709fc631f3438fa57c450a4b392603e
# 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 'pdev_save_srm_config':
> arch/alpha/kernel/pci.c:213:25: error: expected identifier or
'(' before '=' token
213 | struct pci_host_bridge =
pci_find_host_bridge(dev->bus);
| ^
> arch/alpha/kernel/pci.c:216:26: error: 'bridge'
undeclared (first use in this function)
216 | if (!alpha_using_srm ||
bridge->probe_only)
| ^~~~~~
arch/alpha/kernel/pci.c:216:26: note: each undeclared identifier is reported only once
for each function it appears in
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: 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 +213 arch/alpha/kernel/pci.c
209
210 static void pdev_save_srm_config(struct pci_dev *dev)
211 {
212 struct pdev_srm_saved_conf *tmp;
213 struct pci_host_bridge = pci_find_host_bridge(dev->bus);
214 static int printed = 0;
215
216 if (!alpha_using_srm || bridge->probe_only)
217 return;
218
219 if (!printed) {
220 printk(KERN_INFO "pci: enabling save/restore of SRM state\n");
221 printed = 1;
222 }
223
224 tmp = kmalloc(sizeof(*tmp), GFP_KERNEL);
225 if (!tmp) {
226 printk(KERN_ERR "%s: kmalloc() failed!\n", __func__);
227 return;
228 }
229 tmp->next = srm_saved_configs;
230 tmp->dev = dev;
231
232 pci_save_state(dev);
233
234 srm_saved_configs = tmp;
235 }
236
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org