Skip to contentSkip to conversation

acpi: make sleep_states and acpi_gts_bfs_check static

PATCH Applied Stephen Hemminger 2 participants 2 messages Oct 19, 2010 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 acpi: make sleep_states and acpi_gts_bfs_check static

Only used in one file so should be static.

drivers/acpi/sleep.c +2 -2
@@ -25,7 +25,7 @@
 #include "internal.h"
 #include "sleep.h"
 
-u8 sleep_states[ACPI_S_STATE_COUNT];
+static u8 sleep_states[ACPI_S_STATE_COUNT];
 
 static void acpi_sleep_tts_switch(u32 acpi_state)
 {
@@ -680,7 +680,7 @@ static void acpi_power_off(void)
  * paths through the BIOS, so disable _GTS and _BFS by default,
  * but do speak up and offer the option to enable them.
  */
-void __init acpi_gts_bfs_check(void)
+static void __init acpi_gts_bfs_check(void)
 {
 	acpi_handle dummy;
 
reviewer Applied
#1 lore raw

applied

thanks,
Len Brown, Intel Open Source Technology Center