From: Rafael J. Wysocki Date: Mon, 23 Jul 2012 19:01:02 +0000 (+0200) Subject: ACPI / PM: Fix build warning in sleep.c for CONFIG_ACPI_SLEEP unset X-Git-Tag: v3.6-rc2~31^2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5ca7345c1e67cd12cf75a9ec034c7d34786ae79;p=pandora-kernel.git ACPI / PM: Fix build warning in sleep.c for CONFIG_ACPI_SLEEP unset If CONFIG_ACPI_SLEEP is unset, the compiler complains that pwr_btn_event_pending is defined but not used. To silence the warning, move the definition of pwr_btn_event_pending under an appropriate #ifdef. Reported-by: Paul E. McKenney Signed-off-by: Rafael J. Wysocki Tested-by: Paul E. McKenney Signed-off-by: Len Brown --- Reading git-diff-tree failed