From: Adrian Bunk Make needlessly global code static. Signed-off-by: Adrian Bunk Cc: Paul E. McKenney Signed-off-by: Andrew Morton --- kernel/rcutorture.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff -puN kernel/rcutorture.c~srcu-3-add-srcu-operations-to-rcutorture-fix kernel/rcutorture.c --- a/kernel/rcutorture.c~srcu-3-add-srcu-operations-to-rcutorture-fix +++ a/kernel/rcutorture.c @@ -105,11 +105,11 @@ static DEFINE_PER_CPU(long [RCU_TORTURE_ static DEFINE_PER_CPU(long [RCU_TORTURE_PIPE_LEN + 1], rcu_torture_batch) = { 0 }; static atomic_t rcu_torture_wcount[RCU_TORTURE_PIPE_LEN + 1]; -atomic_t n_rcu_torture_alloc; -atomic_t n_rcu_torture_alloc_fail; -atomic_t n_rcu_torture_free; -atomic_t n_rcu_torture_mberror; -atomic_t n_rcu_torture_error; +static atomic_t n_rcu_torture_alloc; +static atomic_t n_rcu_torture_alloc_fail; +static atomic_t n_rcu_torture_free; +static atomic_t n_rcu_torture_mberror; +static atomic_t n_rcu_torture_error; /* * Allocate an element from the rcu_tortures pool. @@ -366,7 +366,7 @@ static void srcu_torture_deferred_free(s } } -int srcu_torture_stats(char *page) +static int srcu_torture_stats(char *page) { int cnt = 0; int cpu; @@ -596,7 +596,7 @@ static int rcu_idle_cpu; /* Force all to /* Shuffle tasks such that we allow @rcu_idle_cpu to become idle. A special case * is when @rcu_idle_cpu = -1, when we allow the tasks to run on all CPUs. */ -void rcu_torture_shuffle_tasks(void) +static void rcu_torture_shuffle_tasks(void) { cpumask_t tmp_mask = CPU_MASK_ALL; int i; _