]> Pileus Git - ~andy/linux/commitdiff
rcu: Make rcu_is_cpu_rrupt_from_idle helper functions static
authorJosh Triplett <josh@joshtriplett.org>
Tue, 20 Nov 2012 17:55:26 +0000 (09:55 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 8 Jan 2013 22:15:25 +0000 (14:15 -0800)
Both rcutiny and rcutree define a helper function named
rcu_is_cpu_rrupt_from_idle(), each used exactly once, later in the
same file.  This commit therefore declares these helper functions static.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcutiny.c
kernel/rcutree.c

index e7dce58f9c2aa3fba2b6b3035d9d1f42d3598399..9f72a0f9f85a527e398475ca79e6c4eb07fab9c5 100644 (file)
@@ -193,7 +193,7 @@ EXPORT_SYMBOL(rcu_is_cpu_idle);
  * interrupts don't count, we must be running at the first interrupt
  * level.
  */
-int rcu_is_cpu_rrupt_from_idle(void)
+static int rcu_is_cpu_rrupt_from_idle(void)
 {
        return rcu_dynticks_nesting <= 1;
 }
index e441b77b614e1eb74b1f764710dc13f2398de17a..cceda7602dfd850721d2cc1232d8ff1bd7c8721d 100644 (file)
@@ -727,7 +727,7 @@ EXPORT_SYMBOL_GPL(rcu_lockdep_current_cpu_online);
  * interrupt from idle, return true.  The caller must have at least
  * disabled preemption.
  */
-int rcu_is_cpu_rrupt_from_idle(void)
+static int rcu_is_cpu_rrupt_from_idle(void)
 {
        return __get_cpu_var(rcu_dynticks).dynticks_nesting <= 1;
 }