tree: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/exp/portdevs head: 9b4c25c36b3f9d2b2519564b9a22dface73130e4 commit: c48883b91c828b400914053595ded9218a7ba321 [7/9] PCI/portdrv: Simplify PCIe feature permission checking config: x86_64-randconfig-x000-201809 (attached as .config) compiler: gcc-7 (Debian 7.3.0-1) 7.3.0 reproduce: git checkout c48883b91c828b400914053595ded9218a7ba321 # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): drivers/acpi/pci_root.c: In function 'acpi_pci_root_create': >> drivers/acpi/pci_root.c:900:32: error: 'PCIE_PORT_SERVICE_HP' undeclared (first use in this function); did you mean 'ACPI_OS_SERVICES'? if (!(root->osc_control_set & PCIE_PORT_SERVICE_HP)) ^~~~~~~~~~~~~~~~~~~~ ACPI_OS_SERVICES drivers/acpi/pci_root.c:900:32: note: each undeclared identifier is reported only once for each function it appears in vim +900 drivers/acpi/pci_root.c 864 865 struct pci_bus *acpi_pci_root_create(struct acpi_pci_root *root, 866 struct acpi_pci_root_ops *ops, 867 struct acpi_pci_root_info *info, 868 void *sysdata) 869 { 870 int ret, busnum = root->secondary.start; 871 struct acpi_device *device = root->device; 872 int node = acpi_get_node(device->handle); 873 struct pci_bus *bus; 874 struct pci_host_bridge *host_bridge; 875 876 info->root = root; 877 info->bridge = device; 878 info->ops = ops; 879 INIT_LIST_HEAD(&info->resources); 880 snprintf(info->name, sizeof(info->name), "PCI Bus %04x:%02x", 881 root->segment, busnum); 882 883 if (ops->init_info && ops->init_info(info)) 884 goto out_release_info; 885 if (ops->prepare_resources) 886 ret = ops->prepare_resources(info); 887 else 888 ret = acpi_pci_probe_root_resources(info); 889 if (ret < 0) 890 goto out_release_info; 891 892 pci_acpi_root_add_resources(info); 893 pci_add_resource(&info->resources, &root->secondary); 894 bus = pci_create_root_bus(NULL, busnum, ops->pci_ops, 895 sysdata, &info->resources); 896 if (!bus) 897 goto out_release_info; 898 899 host_bridge = to_pci_host_bridge(bus->bridge); > 900 if (!(root->osc_control_set & PCIE_PORT_SERVICE_HP)) 901 host_bridge->use_hotplug = 0; 902 if (!(root->osc_control_set & OSC_PCI_EXPRESS_AER_CONTROL)) 903 host_bridge->use_aer = 0; 904 if (!(root->osc_control_set & OSC_PCI_EXPRESS_PME_CONTROL)) 905 host_bridge->use_pme = 0; 906 907 pci_scan_child_bus(bus); 908 pci_set_host_bridge_release(host_bridge, acpi_pci_root_release_info, 909 info); 910 if (node != NUMA_NO_NODE) 911 dev_printk(KERN_DEBUG, &bus->dev, "on NUMA node %d\n", node); 912 return bus; 913 914 out_release_info: 915 __acpi_pci_root_release_info(info); 916 return NULL; 917 } 918 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip