linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [pci:pci/exp/portdevs 7/9] drivers//acpi/pci_root.c:900:2: note: in expansion of macro 'if'
@ 2018-03-07  6:39 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2018-03-07  6:39 UTC (permalink / raw)
  To: Bjorn Helgaas; +Cc: kbuild-all, linux-pci

[-- Attachment #1: Type: text/plain, Size: 3963 bytes --]

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: i386-randconfig-x014-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=i386 

All warnings (new ones prefixed by >>):

   In file included from include/linux/kernel.h:10:0,
                    from drivers//acpi/pci_root.c:22:
   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))
                                   ^
   include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> drivers//acpi/pci_root.c:900:2: note: in expansion of macro 'if'
     if (!(root->osc_control_set & PCIE_PORT_SERVICE_HP))
     ^~
   drivers//acpi/pci_root.c:900:32: note: each undeclared identifier is reported only once for each function it appears in
     if (!(root->osc_control_set & PCIE_PORT_SERVICE_HP))
                                   ^
   include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> drivers//acpi/pci_root.c:900:2: note: in expansion of macro 'if'
     if (!(root->osc_control_set & PCIE_PORT_SERVICE_HP))
     ^~

vim +/if +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 #2: .config.gz --]
[-- Type: application/gzip, Size: 26318 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-03-07  6:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-07  6:39 [pci:pci/exp/portdevs 7/9] drivers//acpi/pci_root.c:900:2: note: in expansion of macro 'if' kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).