tree:
https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git
pci-dw-config-access
head: 6273eefbdae51129a74b3baf3945da012ba8b1b6
commit: 56dfee88838769f43830a290fce0401876e513c0 [19/27] PCI: dwc: Simplify config space
handling
config: sparc64-randconfig-p002-20200818 (attached as .config)
compiler: sparc64-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 56dfee88838769f43830a290fce0401876e513c0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc64
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 >>):
drivers/pci/controller/dwc/pcie-designware-host.c: In function
'dw_pcie_other_conf_map_bus':
> drivers/pci/controller/dwc/pcie-designware-host.c:443:2: error:
expected '}' before 'else'
443 | else
| ^~~~
#
https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git/commit/?id...
git remote add robh
https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git
git fetch --no-tags robh pci-dw-config-access
git checkout 56dfee88838769f43830a290fce0401876e513c0
vim +443 drivers/pci/controller/dwc/pcie-designware-host.c
429
430 static void __iomem *dw_pcie_other_conf_map_bus(struct pci_bus *bus,
431 unsigned int devfn, int where)
432 {
433 int type;
434 u32 busdev;
435 struct pcie_port *pp = bus->sysdata;
436 struct dw_pcie *pci = to_dw_pcie_from_pp(pp);
437
438 busdev = PCIE_ATU_BUS(bus->number) | PCIE_ATU_DEV(PCI_SLOT(devfn)) |
439 PCIE_ATU_FUNC(PCI_FUNC(devfn));
440
441 if (pci_is_root_bus(bus->parent)) {
442 type = PCIE_ATU_TYPE_CFG0;
443 else
444 type = PCIE_ATU_TYPE_CFG1;
445
446
447 dw_pcie_prog_outbound_atu(pci, PCIE_ATU_REGION_INDEX1,
448 type, pp->cfg0_base,
449 busdev, pp->cfg0_size);
450
451 return pp->va_cfg0_base + where;
452 }
453
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org