[<prev] [next>] [day] [month] [year] [list]
Message-ID: <28730.1230891954@turing-police.cc.vt.edu>
Date: Fri, 02 Jan 2009 05:25:54 -0500
From: Valdis.Kletnieks@...edu
To: Andrew Morton <akpm@...ux-foundation.org>,
Len Brown <len.brown@...el.com>
Cc: linux-kernel@...r.kernel.org
Subject: 2.6.28-mmotm1230 drivers/acpi/hardware/hwsleep.c warning msg
In mmotm1230 the linux.next patch, most likely via this commit:
commit ecd196686aee5028f71ee09072c8581c7293a847
Author: Len Brown <len.brown@...el.com>
Date: Fri Dec 19 03:53:37 2008 -0500
ACPICA: disable ACPI 2.0 _GTS/_BFS support
added some warning messages:
CC drivers/acpi/hardware/hwsleep.o
drivers/acpi/hardware/hwsleep.c: In function âacpi_enter_sleep_stateâ:
drivers/acpi/hardware/hwsleep.c:231: warning: unused variable âargâ
drivers/acpi/hardware/hwsleep.c:230: warning: unused variable âarg_listâ
drivers/acpi/hardware/hwsleep.c: In function âacpi_leave_sleep_state_prepâ:
drivers/acpi/hardware/hwsleep.c:471: warning: unused variable âargâ
drivers/acpi/hardware/hwsleep.c:470: warning: unused variable âarg_listâ
If we're going to #ifdef-wrap the code, let's do the variables involved
as well, so we don't get warnings.
Signed-off-by: Valdis Kletnieks <valdis.kletnieks@...edu>
--- linux-2.6.28-mmotm1230/drivers/acpi/hardware/hwsleep.c.dist 2009-01-01 17:22:49.000000000 -0500
+++ linux-2.6.28-mmotm1230/drivers/acpi/hardware/hwsleep.c 2009-01-02 05:19:05.000000000 -0500
@@ -227,8 +227,10 @@ acpi_status asmlinkage acpi_enter_sleep_
struct acpi_bit_register_info *sleep_type_reg_info;
struct acpi_bit_register_info *sleep_enable_reg_info;
u32 in_value;
+#ifdef ACPI_20_GTS_BFS
struct acpi_object_list arg_list;
union acpi_object arg;
+#endif
acpi_status status;
ACPI_FUNCTION_TRACE(acpi_enter_sleep_state);
@@ -467,8 +469,10 @@ ACPI_EXPORT_SYMBOL(acpi_enter_sleep_stat
******************************************************************************/
acpi_status acpi_leave_sleep_state_prep(u8 sleep_state)
{
+#ifdef ACPI_20_GTS_BFS
struct acpi_object_list arg_list;
union acpi_object arg;
+#endif
acpi_status status;
struct acpi_bit_register_info *sleep_type_reg_info;
struct acpi_bit_register_info *sleep_enable_reg_info;
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists