diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2010-01-14 19:10:58 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-01-16 04:25:22 -0500 |
commit | 017c426138122c8e9b9f5057fbd0567c37b35247 (patch) | |
tree | 648d35f773bc08e83d06f0c02a68cae02c46a4cd /kernel/rcutree.h | |
parent | 4c54005ca438a8b46dd542b497d4f0dc2ca375e8 (diff) |
rcu: Fix sparse warnings
Rename local variable "i" in rcu_init() to avoid conflict with
RCU_INIT_FLAVOR(), restrict the scope of RCU_TREE_NONCORE, and
make __synchronize_srcu() static.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: laijs@cn.fujitsu.com
Cc: dipankar@in.ibm.com
Cc: mathieu.desnoyers@polymtl.ca
Cc: josh@joshtriplett.org
Cc: dvhltc@us.ibm.com
Cc: niv@us.ibm.com
Cc: peterz@infradead.org
Cc: rostedt@goodmis.org
Cc: Valdis.Kletnieks@vt.edu
Cc: dhowells@redhat.com
LKML-Reference: <12635142581560-git-send-email->
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/rcutree.h')
-rw-r--r-- | kernel/rcutree.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/rcutree.h b/kernel/rcutree.h index bd5d78ad1c48..d9d032abd665 100644 --- a/kernel/rcutree.h +++ b/kernel/rcutree.h | |||
@@ -323,8 +323,6 @@ struct rcu_state { | |||
323 | #define RCU_OFL_TASKS_EXP_GP 0x2 /* Tasks blocking expedited */ | 323 | #define RCU_OFL_TASKS_EXP_GP 0x2 /* Tasks blocking expedited */ |
324 | /* GP were moved to root. */ | 324 | /* GP were moved to root. */ |
325 | 325 | ||
326 | #ifdef RCU_TREE_NONCORE | ||
327 | |||
328 | /* | 326 | /* |
329 | * RCU implementation internal declarations: | 327 | * RCU implementation internal declarations: |
330 | */ | 328 | */ |
@@ -339,7 +337,7 @@ extern struct rcu_state rcu_preempt_state; | |||
339 | DECLARE_PER_CPU(struct rcu_data, rcu_preempt_data); | 337 | DECLARE_PER_CPU(struct rcu_data, rcu_preempt_data); |
340 | #endif /* #ifdef CONFIG_TREE_PREEMPT_RCU */ | 338 | #endif /* #ifdef CONFIG_TREE_PREEMPT_RCU */ |
341 | 339 | ||
342 | #else /* #ifdef RCU_TREE_NONCORE */ | 340 | #ifndef RCU_TREE_NONCORE |
343 | 341 | ||
344 | /* Forward declarations for rcutree_plugin.h */ | 342 | /* Forward declarations for rcutree_plugin.h */ |
345 | static void rcu_bootup_announce(void); | 343 | static void rcu_bootup_announce(void); |
@@ -372,4 +370,4 @@ static void __cpuinit rcu_preempt_init_percpu_data(int cpu); | |||
372 | static void rcu_preempt_send_cbs_to_orphanage(void); | 370 | static void rcu_preempt_send_cbs_to_orphanage(void); |
373 | static void __init __rcu_init_preempt(void); | 371 | static void __init __rcu_init_preempt(void); |
374 | 372 | ||
375 | #endif /* #else #ifdef RCU_TREE_NONCORE */ | 373 | #endif /* #ifndef RCU_TREE_NONCORE */ |