[PATCH] sched: fix build failure in kernel/sched_rt.c

From: Ingo Molnar
Date: Mon Dec 08 2008 - 10:39:24 EST


Impact: build fix

fix:

kernel/sched_rt.c: In function âinc_rt_tasksâ:
kernel/sched_rt.c:593: error: âprioâ undeclared (first use in this function)
kernel/sched_rt.c:593: error: (Each undeclared identifier is reported only once
kernel/sched_rt.c:593: error: for each function it appears in.)

Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
---
kernel/sched_rt.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c
index c5b1c5a..64a8f0a 100644
--- a/kernel/sched_rt.c
+++ b/kernel/sched_rt.c
@@ -583,9 +583,7 @@ static inline int next_prio(struct rq *rq)
static inline
void inc_rt_tasks(struct sched_rt_entity *rt_se, struct rt_rq *rt_rq)
{
-#if defined CONFIG_SMP || defined CONFIG_RT_GROUP_SCHED
int prio = rt_se_prio(rt_se);
-#endif
#ifdef CONFIG_SMP
struct rq *rq = rq_of_rt_rq(rt_rq);
#endif
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/