tree:
https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git
pci-more-dwc-cleanup
head: b285c17704ea673ae4525d94f76d04369543ec9b
commit: 8918f95c69c021a19503aa27c19ffed988d93021 [1/4] PCI: dwc: Add a default
pci_ops.map_bus for root port
config: x86_64-randconfig-a004-20200917 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
0ff28fa6a75617d61b1aeea77463d6a1684c3c89)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout 8918f95c69c021a19503aa27c19ffed988d93021
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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:512:15: error:
redefinition of 'dw_pcie_own_conf_map_bus'
void __iomem
*dw_pcie_own_conf_map_bus(struct pci_bus *bus, unsigned int devfn, int where)
^
drivers/pci/controller/dwc/pcie-designware-host.c:500:15: note: previous definition is
here
void __iomem *dw_pcie_own_conf_map_bus(struct pci_bus *bus, unsigned int devfn, int
where)
^
1 error generated.
#
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-more-dwc-cleanup
git checkout 8918f95c69c021a19503aa27c19ffed988d93021
vim +/dw_pcie_own_conf_map_bus +512 drivers/pci/controller/dwc/pcie-designware-host.c
511
512 void __iomem *dw_pcie_own_conf_map_bus(struct pci_bus *bus,
unsigned int devfn, int where)
513 {
514 struct pcie_port *pp = bus->sysdata;
515 struct dw_pcie *pci = to_dw_pcie_from_pp(pp);
516
517 if (PCI_SLOT(devfn) > 0)
518 return NULL;
519
520 return pci->dbi_base + where;
521 }
522
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org