Fix a compile warning on -rt13, and UP (ARM AT91rm9200) Signed-off-by: Remy Bohmer --- kernel/rcupreempt.c | 2 -- kernel/sched_rt.c | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) Index: linux-2.6.23/kernel/sched_rt.c =================================================================== --- linux-2.6.23.orig/kernel/sched_rt.c 2007-12-13 10:59:54.000000000 +0100 +++ linux-2.6.23/kernel/sched_rt.c 2007-12-13 11:06:41.000000000 +0100 @@ -85,8 +85,9 @@ static inline void inc_rt_tasks(struct t static inline void dec_rt_tasks(struct task_struct *p, struct rq *rq) { +#ifdef CONFIG_SMP int highest_prio = rq->rt.highest_prio; - +#endif WARN_ON(!rt_task(p)); WARN_ON(!rq->rt.rt_nr_running); rq->rt.rt_nr_running--; Index: linux-2.6.23/kernel/rcupreempt.c =================================================================== --- linux-2.6.23.orig/kernel/rcupreempt.c 2007-12-13 10:59:54.000000000 +0100 +++ linux-2.6.23/kernel/rcupreempt.c 2007-12-13 11:38:28.000000000 +0100 @@ -998,8 +998,6 @@ void __init rcu_init_rt(void) rcu_preempt_boost_init(); } -static DEFINE_PER_CPU(long, rcu_dyntick_snapshot); - /* * Deprecated, use synchronize_rcu() or synchronize_sched() instead. */