From mboxrd@z Thu Jan 1 00:00:00 1970 From: Feng Tang Subject: Re: next: sfi build fails when !CONFIG_ACPI Date: Thu, 23 Jul 2009 18:15:25 +0800 Message-ID: <20090723181525.475692d3@feng-desktop> References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-acpi-owner@vger.kernel.org To: Alexander Beregalov Cc: Len Brown , linux-next , Linux Kernel Mailing List , "linux-acpi@vger.kernel.org" List-Id: linux-next.vger.kernel.org On Thu, 23 Jul 2009 16:43:30 +0800 Alexander Beregalov wrote: > 2009/7/17 Alexander Beregalov : > > 2009/7/17 Len Brown : > >>> drivers/sfi/sfi_core.c: In function 'sfi_init': > >>> drivers/sfi/sfi_core.c:346: error: 'acpi_disabled' undeclared > >>> (first use in this function) > >>> drivers/sfi/sfi_core.c:346: error: (Each undeclared identifier is > >>> reported only once > >>> drivers/sfi/sfi_core.c:346: error: for each function it appears > >>> in.) > >>> > >>> > >>> $ grep ACPI .config > >>> # Power management and ACPI options > >> > >> It builds for me. > >> Please send me the complete failing .config > > > > Attached (x86_64) > > Still fails for me in the same way, > X86_64 > next-20090723 sorry for the late response, please try the following patch: diff --git a/drivers/sfi/sfi_core.c b/drivers/sfi/sfi_core.c index 62e2f98..fa66824 100644 --- a/drivers/sfi/sfi_core.c +++ b/drivers/sfi/sfi_core.c @@ -361,9 +361,6 @@ static __init int sfi_find_syst(void) void __init sfi_init(void) { - if (!acpi_disabled) - disable_sfi(); - if (sfi_disabled) return; Thanks, Feng