Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI: static sleep_states[] and acpi_gts_bfs_check

Only used in one file so should be static.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Len Brown <len.brown@intel.com>

authored by

Stephen Hemminger and committed by
Len Brown
01eac60b 5ba8b1c6

+2 -3
+2 -2
drivers/acpi/sleep.c
··· 25 25 #include "internal.h" 26 26 #include "sleep.h" 27 27 28 - u8 sleep_states[ACPI_S_STATE_COUNT]; 28 + static u8 sleep_states[ACPI_S_STATE_COUNT]; 29 29 30 30 static void acpi_sleep_tts_switch(u32 acpi_state) 31 31 { ··· 702 702 * paths through the BIOS, so disable _GTS and _BFS by default, 703 703 * but do speak up and offer the option to enable them. 704 704 */ 705 - void __init acpi_gts_bfs_check(void) 705 + static void __init acpi_gts_bfs_check(void) 706 706 { 707 707 acpi_handle dummy; 708 708
-1
drivers/acpi/sleep.h
··· 1 1 2 - extern u8 sleep_states[]; 3 2 extern int acpi_suspend(u32 state); 4 3 5 4 extern void acpi_enable_wakeup_devices(u8 sleep_state);