From patchwork Tue Dec 7 14:52:25 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Beulich X-Patchwork-Id: 383082 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oB7EqSDK012106 for ; Tue, 7 Dec 2010 14:52:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754361Ab0LGOw1 (ORCPT ); Tue, 7 Dec 2010 09:52:27 -0500 Received: from vpn.id2.novell.com ([195.33.99.129]:58054 "EHLO vpn.id2.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752983Ab0LGOw1 convert rfc822-to-8bit (ORCPT ); Tue, 7 Dec 2010 09:52:27 -0500 Received: from EMEA1-MTA by vpn.id2.novell.com with Novell_GroupWise; Tue, 07 Dec 2010 15:25:27 +0000 Message-Id: <4CFE583902000078000266E9@vpn.id2.novell.com> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Tue, 07 Dec 2010 14:52:25 +0000 From: "Jan Beulich" To: "Len Brown" Cc: Subject: [PATCH] ACPI: eliminate unused variable warning for !ACPI_SLEEP Mime-Version: 1.0 Content-Disposition: inline Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 07 Dec 2010 14:52:28 +0000 (UTC) --- linux-2.6.37-rc5/drivers/acpi/sleep.c +++ 2.6.37-rc5-acpi-sleep-warning/drivers/acpi/sleep.c @@ -27,8 +27,6 @@ static u8 sleep_states[ACPI_S_STATE_COUNT]; -static u32 acpi_target_sleep_state = ACPI_STATE_S0; - static void acpi_sleep_tts_switch(u32 acpi_state) { union acpi_object in_arg = { ACPI_TYPE_INTEGER }; @@ -81,6 +79,8 @@ static int acpi_sleep_prepare(u32 acpi_s } #ifdef CONFIG_ACPI_SLEEP +static u32 acpi_target_sleep_state = ACPI_STATE_S0; + /* * The ACPI specification wants us to save NVS memory regions during hibernation * and to restore them during the subsequent resume. Windows does that also for