tree: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/ecam head: f80edf4d6c053d529b4f044f867f8269f0050c72 commit: b13e44a1ff3af460ce7770face55ff1dc802efcf [6/13] PCI/ACPI: Extend pci_mcfg_lookup() to return ECAM config accessors config: arm64-defconfig (attached as .config) compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout b13e44a1ff3af460ce7770face55ff1dc802efcf # save the attached .config to linux build tree make.cross ARCH=arm64 All errors (new ones prefixed by >>): arch/arm64/kernel/pci.c: In function 'pci_acpi_setup_ecam_mapping': >> arch/arm64/kernel/pci.c:128:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'struct' struct resource cfgres; ^~~~~~ >> arch/arm64/kernel/pci.c:134:40: error: 'ecam_ops' undeclared (first use in this function) ret = pci_mcfg_lookup(root, &cfgres, &ecam_ops); ^~~~~~~~ arch/arm64/kernel/pci.c:134:40: note: each undeclared identifier is reported only once for each function it appears in arch/arm64/kernel/pci.c:131:15: warning: unused variable 'bsz' [-Wunused-variable] unsigned int bsz; ^~~ vim +128 arch/arm64/kernel/pci.c 0cb0786b Tomasz Nowicki 2016-06-10 122 pci_acpi_setup_ecam_mapping(struct acpi_pci_root *root) 0cb0786b Tomasz Nowicki 2016-06-10 123 { 1725c4a5 Bjorn Helgaas 2016-12-01 124 struct device *dev = &root->device->dev; 0cb0786b Tomasz Nowicki 2016-06-10 125 struct resource *bus_res = &root->secondary; 0cb0786b Tomasz Nowicki 2016-06-10 126 u16 seg = root->segment; b13e44a1 Tomasz Nowicki 2016-09-09 127 struct pci_ecam_ops *ecam_ops 0cb0786b Tomasz Nowicki 2016-06-10 @128 struct resource cfgres; 2d3ff777 Bjorn Helgaas 2016-11-30 129 struct acpi_device *adev; 2d3ff777 Bjorn Helgaas 2016-11-30 130 struct pci_config_window *cfg; 0cb0786b Tomasz Nowicki 2016-06-10 131 unsigned int bsz; b13e44a1 Tomasz Nowicki 2016-09-09 132 int ret; 0cb0786b Tomasz Nowicki 2016-06-10 133 b13e44a1 Tomasz Nowicki 2016-09-09 @134 ret = pci_mcfg_lookup(root, &cfgres, &ecam_ops); b13e44a1 Tomasz Nowicki 2016-09-09 135 if (ret) { 1725c4a5 Bjorn Helgaas 2016-12-01 136 dev_err(dev, "%04x:%pR ECAM region not found\n", seg, bus_res); 0cb0786b Tomasz Nowicki 2016-06-10 137 return NULL; :::::: The code at line 128 was first introduced by commit :::::: 0cb0786bac159ee4c983abab51093ef623849afa ARM64: PCI: Support ACPI-based PCI host controller :::::: TO: Tomasz Nowicki <tn@xxxxxxxxxxxx> :::::: CC: Bjorn Helgaas <bhelgaas@xxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip