[tip:x86/platform 6/6] arch/x86/pci/mmconfig-shared.c:823:9: error: implicit declaration of function 'pci_mmcfg_read'
From: kbuild test robot
Date: Wed Jun 28 2017 - 19:51:50 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/platform
head: 5d381c2e053918bd67c2d1cc50fc73c35bd547f7
commit: 5d381c2e053918bd67c2d1cc50fc73c35bd547f7 [6/6] x86/PCI/mmcfg: Switch to ECAM config mode if possible
config: x86_64-allyesdebian+CONFIG_DEBUG_INFO_REDUCED (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 5d381c2e053918bd67c2d1cc50fc73c35bd547f7
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
arch/x86/pci/mmconfig-shared.c: In function 'pci_ecam_read':
>> arch/x86/pci/mmconfig-shared.c:823:9: error: implicit declaration of function 'pci_mmcfg_read' [-Werror=implicit-function-declaration]
return pci_mmcfg_read(pci_domain_nr(bus), bus->number, devfn, reg,
^~~~~~~~~~~~~~
arch/x86/pci/mmconfig-shared.c: In function 'pci_ecam_write':
>> arch/x86/pci/mmconfig-shared.c:830:9: error: implicit declaration of function 'pci_mmcfg_write' [-Werror=implicit-function-declaration]
return pci_mmcfg_write(pci_domain_nr(bus), bus->number, devfn, reg,
^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/pci_mmcfg_read +823 arch/x86/pci/mmconfig-shared.c
817 return -ENOENT;
818 }
819
820 static int pci_ecam_read(struct pci_bus *bus, unsigned int devfn, int reg,
821 int size, u32 *value)
822 {
> 823 return pci_mmcfg_read(pci_domain_nr(bus), bus->number, devfn, reg,
824 size, value);
825 }
826
827 static int pci_ecam_write(struct pci_bus *bus, unsigned int devfn, int reg,
828 int size, u32 value)
829 {
> 830 return pci_mmcfg_write(pci_domain_nr(bus), bus->number, devfn, reg,
831 size, value);
832 }
833
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip