summaryrefslogtreecommitdiff
path: root/kernel/rcutree.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2011-12-14 12:51:28 +0100
committerClark Williams <williams@redhat.com>2012-04-10 16:37:22 -0500
commitb0040072604ef396803cea97c390e09b81089e1f (patch)
treef206e65a27dcd35df9c0ef00515d9c2e4f5d4997 /kernel/rcutree.c
parentc96e0ca3933f51d7a50639cbe633d6b5ce5ad304 (diff)
rt/rcutree: Move misplaced prototype
Fix this warning on x86 defconfig: kernel/rcutree.h:433:13: warning: ‘rcu_preempt_qs’ declared ‘static’ but never defined [-Wunused-function] The #ifdefs and prototypes here are a maze, move it closer to the usage site that needs it. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/rcutree.c')
-rw-r--r--kernel/rcutree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/rcutree.c b/kernel/rcutree.c
index 3118218d6689..8c26a499ff99 100644
--- a/kernel/rcutree.c
+++ b/kernel/rcutree.c
@@ -171,6 +171,8 @@ void rcu_sched_qs(int cpu)
}
#ifdef CONFIG_PREEMPT_RT_FULL
+static void rcu_preempt_qs(int cpu);
+
void rcu_bh_qs(int cpu)
{
rcu_preempt_qs(cpu);