Re: [pci:pci/hotplug 34/35] drivers/pci/pci.c:2311:37: error: implicit declaration of function 'pciehp_is_native'; did you mean 'pcie_ports_native'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jul 20, 2018 at 10:18:41AM +0200, Lukas Wunner wrote:
> On Fri, Jul 20, 2018 at 07:53:33AM +0800, kbuild test robot wrote:
> > commit: 50b623f07b02fc48e4d7d3e8b5a302abf40b3a7a [34/35] PCI: Whitelist native hotplug ports for runtime D3
> > 
> >    drivers/pci/pci.c: In function 'pci_bridge_d3_possible':
> > >> drivers/pci/pci.c:2311:37: error: implicit declaration of function 'pciehp_is_native'; did you mean 'pcie_ports_native'? [-Werror=implicit-function-declaration]
> >       if (bridge->is_hotplug_bridge && !pciehp_is_native(bridge))
> >                                         ^~~~~~~~~~~~~~~~
> >                                         pcie_ports_native
> >    cc1: some warnings being treated as errors
> 
> Hm, there is a conflict on the pci/hotplug branch wherein commit
> "PCI: hotplug: Implement hotplug_is_native() only when CONFIG_ACPI=y"
> removes the pciehp_is_native() declaration for the CONFIG_ACPI=n
> case (because there was previously only one caller of that function
> and that caller depended on CONFIG_ACPI=y), but the succeeding commit
> "PCI: Whitelist native hotplug ports for runtime D3" now adds another
> caller of that function which also exists in the CONFIG_ACPI=n case.
> 
> Can the former commit be amended to leave the pciehp_is_native()
> declaration in place for CONFIG_ACPI=n?

I dropped the following commits for now:

  PCI: shpchp: Inline shpchp_is_native()
  PCI: hotplug: Implement hotplug_is_native() only when CONFIG_ACPI=y



[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux