Skip to content

Commit

Permalink
X86 ACPI: Use #ifdef not #if for CONFIG_X86 check
Browse files Browse the repository at this point in the history
Fix a build warning on ia64:

include/linux/acpi.h:437:5: warning: "CONFIG_X86" is not defined

Signed-off-by: Tony Luck <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Cc: Len Brown <[email protected]>
Cc: Thomas Renninger <[email protected]>
Signed-off-by: H. Peter Anvin <[email protected]>
  • Loading branch information
aegl authored and H. Peter Anvin committed Oct 5, 2012
1 parent 3dfd823 commit 385ddea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/acpi.h
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ void acpi_os_set_prepare_sleep(int (*func)(u8 sleep_state,

acpi_status acpi_os_prepare_sleep(u8 sleep_state,
u32 pm1a_control, u32 pm1b_control);
#if CONFIG_X86
#ifdef CONFIG_X86
void arch_reserve_mem_area(acpi_physical_address addr, size_t size);
#else
static inline void arch_reserve_mem_area(acpi_physical_address addr,
Expand Down

0 comments on commit 385ddea

Please sign in to comment.