diff options
author | Pranith Kumar <bobby.prani@gmail.com> | 2014-07-08 18:26:10 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-09-07 19:18:08 -0400 |
commit | bf33eb1aef23e8049cd222471d35b0988c420b18 (patch) | |
tree | f11d24b510be87605605dc13517b354144192783 /kernel | |
parent | 4de376a1b14e32f550931274f06b571abc0f3d4b (diff) |
rcu: Fix sparse warning about rcu_batches_completed_preempt() being non-static
fix sparse warning about rcu_batches_completed_preempt() being non-static by
marking it as static
Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/rcu/tree_plugin.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h index 218fae30c380..5defa2f089af 100644 --- a/kernel/rcu/tree_plugin.h +++ b/kernel/rcu/tree_plugin.h | |||
@@ -134,7 +134,7 @@ static void __init rcu_bootup_announce(void) | |||
134 | * Return the number of RCU-preempt batches processed thus far | 134 | * Return the number of RCU-preempt batches processed thus far |
135 | * for debug and statistics. | 135 | * for debug and statistics. |
136 | */ | 136 | */ |
137 | long rcu_batches_completed_preempt(void) | 137 | static long rcu_batches_completed_preempt(void) |
138 | { | 138 | { |
139 | return rcu_preempt_state.completed; | 139 | return rcu_preempt_state.completed; |
140 | } | 140 | } |