Skip to contentSkip to conversation

i386/x86_64/parisc process.c: make hlt_counter static

PATCH New Adrian Bunk 1 participant 1 message Dec 6, 2004 PA-RISC architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i386/x86_64/parisc process.c: make hlt_counter static

The patch below makes a needlessly global variable static.

diffstat output:

 arch/i386/kernel/process.c   |    2 +-
 arch/parisc/kernel/process.c |    2 +-
 arch/x86_64/kernel/process.c |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
arch/i386/kernel/process.c renamed from arch/i386/kernel/process.c.old +1 -1
@@ -60,7 +60,7 @@
 
 asmlinkage void ret_from_fork(void) __asm__("ret_from_fork");
 
-int hlt_counter;
+static int hlt_counter;
 
 unsigned long boot_option_idle_override = 0;
 EXPORT_SYMBOL(boot_option_idle_override);
arch/parisc/kernel/process.c renamed from arch/parisc/kernel/process.c.old +1 -1
@@ -54,7 +54,7 @@
 #include <asm/uaccess.h>
 #include <asm/unwind.h>
 
-int hlt_counter;
+static int hlt_counter;
 
 /*
  * Power off function, if any
arch/x86_64/kernel/process.c renamed from arch/x86_64/kernel/process.c.old +1 -1
@@ -53,7 +53,7 @@
 
 unsigned long kernel_thread_flags = CLONE_VM | CLONE_UNTRACED;
 
-atomic_t hlt_counter = ATOMIC_INIT(0);
+static atomic_t hlt_counter = ATOMIC_INIT(0);
 
 unsigned long boot_option_idle_override = 0;
 EXPORT_SYMBOL(boot_option_idle_override);