rcu: Fix sparse warning about rcu_batches_completed_preempt() being non-static
authorPranith Kumar <bobby.prani@gmail.com>
Tue, 8 Jul 2014 22:26:10 +0000 (18:26 -0400)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 7 Sep 2014 23:18:08 +0000 (16:18 -0700)
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>
kernel/rcu/tree_plugin.h

index 218fae30c3803f7f4c38194690de1671e9fc9883..5defa2f089af53f205f5f452aa69a5037b5fa347 100644 (file)
@@ -134,7 +134,7 @@ static void __init rcu_bootup_announce(void)
  * Return the number of RCU-preempt batches processed thus far
  * for debug and statistics.
  */
-long rcu_batches_completed_preempt(void)
+static long rcu_batches_completed_preempt(void)
 {
        return rcu_preempt_state.completed;
 }
This page took 0.027055 seconds and 5 git commands to generate.