diff options
author | Ingo Molnar <mingo@elte.hu> | 2011-12-14 12:51:28 +0100 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2011-12-28 16:25:46 -0600 |
commit | 495f573c85270b51a11b8e78190a282faee645d7 (patch) | |
tree | 8cd4d981d0761c7ef07c5ec516fe048c2dcec460 | |
parent | 0bb05f4514cac889ef108f5f68e1f49c2802e08f (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>
-rw-r--r-- | kernel/rcutree.c | 2 | ||||
-rw-r--r-- | kernel/rcutree.h | 1 |
2 files changed, 2 insertions, 1 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); diff --git a/kernel/rcutree.h b/kernel/rcutree.h index b5222738c9b0..dca495d81304 100644 --- a/kernel/rcutree.h +++ b/kernel/rcutree.h @@ -430,7 +430,6 @@ DECLARE_PER_CPU(char, rcu_cpu_has_work); /* Forward declarations for rcutree_plugin.h */ static void rcu_bootup_announce(void); long rcu_batches_completed(void); -static void rcu_preempt_qs(int cpu); static void rcu_preempt_note_context_switch(int cpu); static int rcu_preempt_blocked_readers_cgp(struct rcu_node *rnp); #ifdef CONFIG_HOTPLUG_CPU |