Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936191Ab3DPU12 (ORCPT ); Tue, 16 Apr 2013 16:27:28 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:41732 "EHLO mail-pb0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936130Ab3DPU1Z (ORCPT ); Tue, 16 Apr 2013 16:27:25 -0400 Date: Tue, 16 Apr 2013 13:27:22 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Jiang Liu cc: Bjorn Helgaas , "Rafael J . Wysocki" , Jiang Liu , Yinghai Lu , Yijing Wang , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Greg Kroah-Hartman , ACPI Devel Maling List , Toshi Kani , Myron Stowe , "Rafael J. Wysocki" , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org Subject: Re: [PATCH v9 09/16] PCI, x86: implement pcibios_{add|remove}_bus() hooks In-Reply-To: <1365781470-32379-10-git-send-email-jiang.liu@huawei.com> Message-ID: References: <1365781470-32379-1-git-send-email-jiang.liu@huawei.com> <1365781470-32379-10-git-send-email-jiang.liu@huawei.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1480 Lines: 44 On Fri, 12 Apr 2013, Jiang Liu wrote: > diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c > index 901177d..305c68b 100644 > --- a/arch/x86/pci/common.c > +++ b/arch/x86/pci/common.c > @@ -6,6 +6,7 @@ > > #include > #include > +#include > #include > #include > #include > @@ -170,6 +171,16 @@ void pcibios_fixup_bus(struct pci_bus *b) > pcibios_fixup_device_resources(dev); > } > > +void pcibios_add_bus(struct pci_bus *bus) > +{ > + acpi_pci_add_bus(bus); > +} > + > +void pcibios_remove_bus(struct pci_bus *bus) > +{ > + acpi_pci_remove_bus(bus); > +} > + > /* > * Only use DMI information to set this if nothing was passed > * on the kernel command line (which was parsed earlier). This causes build errors when CONFIG_ACPI isn't enabled since both acpi_pci_{add,remove}_bus() aren't defined in such a configuration: arch/x86/pci/common.c: In function 'pcibios_add_bus': arch/x86/pci/common.c:176:2: error: implicit declaration of function 'acpi_pci_add_bus' arch/x86/pci/common.c: In function 'pcibios_remove_bus': arch/x86/pci/common.c:181:2: error: implicit declaration of function 'acpi_pci_remove_bus' -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/