From: Matthew Wilcox Subject: Re: Re: fix ACPI poweroff in 2.4.25-rc2 Date: Wed, 3 Mar 2004 19:46:56 +0000 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <20040303194656.GV25779@parcelfarce.linux.theplanet.co.uk> References: <200403031117.25937.bjorn.helgaas@hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <200403031117.25937.bjorn.helgaas-VXdhtT5mjnY@public.gmane.org> Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Bjorn Helgaas Cc: Marcelo Tosatti , willy-tRhHnHjXm5DYtjvyW6yDsg@public.gmane.org, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org On Wed, Mar 03, 2004 at 11:17:25AM -0700, Bjorn Helgaas wrote: > ===== drivers/acpi/system.c 1.18 vs edited ===== > --- 1.18/drivers/acpi/system.c Tue Mar 2 14:50:40 2004 > +++ edited/drivers/acpi/system.c Wed Mar 3 10:43:11 2004 > @@ -95,7 +95,9 @@ > { > if (unlikely(in_interrupt())) > BUG(); > +#ifdef CONFIG_ACPI_SLEEP > acpi_system_save_state(ACPI_STATE_S5); > +#endif Should we not rather define a null acpi_system_save_state() function if CONFIG_ACPI_SLEEP is not set? -- "Next the statesmen will invent cheap lies, putting the blame upon the nation that is attacked, and every man will be glad of those conscience-soothing falsities, and will diligently study them, and refuse to examine any refutations of them; and thus he will by and by convince himself that the war is just, and will thank God for the better sleep he enjoys after this process of grotesque self-deception." -- Mark Twain ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click