diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2013-08-18 15:14:32 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2013-09-23 12:12:31 -0400 |
commit | 01896f7e0a122e8f20082e24f6f9a340034b9c01 (patch) | |
tree | 5b4b1bdbdb9298f86bc4f2ff779bcdd417aa51b2 | |
parent | b3f2d02598fcf16933f72a57bbba7edb22ad8eda (diff) |
rcu: Convert local functions to static
The rcu_cpu_stall_timeout kernel parameter, the rcu_dynticks per-CPU
variable, and the rcu_gp_fqs() function are used only locally. This
commit therefore marks them as static.
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
-rw-r--r-- | kernel/rcupdate.c | 2 | ||||
-rw-r--r-- | kernel/rcutree.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/kernel/rcupdate.c b/kernel/rcupdate.c index b02a339836b4..3260a1074b48 100644 --- a/kernel/rcupdate.c +++ b/kernel/rcupdate.c | |||
@@ -298,7 +298,7 @@ EXPORT_SYMBOL_GPL(do_trace_rcu_torture_read); | |||
298 | #endif | 298 | #endif |
299 | 299 | ||
300 | int rcu_cpu_stall_suppress __read_mostly; /* 1 = suppress stall warnings. */ | 300 | int rcu_cpu_stall_suppress __read_mostly; /* 1 = suppress stall warnings. */ |
301 | int rcu_cpu_stall_timeout __read_mostly = CONFIG_RCU_CPU_STALL_TIMEOUT; | 301 | static int rcu_cpu_stall_timeout __read_mostly = CONFIG_RCU_CPU_STALL_TIMEOUT; |
302 | 302 | ||
303 | module_param(rcu_cpu_stall_suppress, int, 0644); | 303 | module_param(rcu_cpu_stall_suppress, int, 0644); |
304 | module_param(rcu_cpu_stall_timeout, int, 0644); | 304 | module_param(rcu_cpu_stall_timeout, int, 0644); |
diff --git a/kernel/rcutree.c b/kernel/rcutree.c index e0fa1920cd67..2712b8991143 100644 --- a/kernel/rcutree.c +++ b/kernel/rcutree.c | |||
@@ -222,7 +222,7 @@ void rcu_note_context_switch(int cpu) | |||
222 | } | 222 | } |
223 | EXPORT_SYMBOL_GPL(rcu_note_context_switch); | 223 | EXPORT_SYMBOL_GPL(rcu_note_context_switch); |
224 | 224 | ||
225 | DEFINE_PER_CPU(struct rcu_dynticks, rcu_dynticks) = { | 225 | static DEFINE_PER_CPU(struct rcu_dynticks, rcu_dynticks) = { |
226 | .dynticks_nesting = DYNTICK_TASK_EXIT_IDLE, | 226 | .dynticks_nesting = DYNTICK_TASK_EXIT_IDLE, |
227 | .dynticks = ATOMIC_INIT(1), | 227 | .dynticks = ATOMIC_INIT(1), |
228 | #ifdef CONFIG_NO_HZ_FULL_SYSIDLE | 228 | #ifdef CONFIG_NO_HZ_FULL_SYSIDLE |
@@ -1366,7 +1366,7 @@ static int rcu_gp_init(struct rcu_state *rsp) | |||
1366 | /* | 1366 | /* |
1367 | * Do one round of quiescent-state forcing. | 1367 | * Do one round of quiescent-state forcing. |
1368 | */ | 1368 | */ |
1369 | int rcu_gp_fqs(struct rcu_state *rsp, int fqs_state_in) | 1369 | static int rcu_gp_fqs(struct rcu_state *rsp, int fqs_state_in) |
1370 | { | 1370 | { |
1371 | int fqs_state = fqs_state_in; | 1371 | int fqs_state = fqs_state_in; |
1372 | bool isidle = false; | 1372 | bool isidle = false; |