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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ingo Molnar
Date: Monday, December 8, 2008 - 9:05 am

From a9750309ef51081abb17268936769511b3683488 Mon Sep 17 00:00:00 2001
From: Ingo Molnar <mingo@elte.hu>
Date: Mon, 8 Dec 2008 16:39:24 +0100
Subject: [PATCH] sched: fix build failure in kernel/sched_rt.c
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

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@elte.hu>
---
 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
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[git pull] RT scheduler updates for tip, Gregory Haskins, (Fri Dec 5, 7:24 am)
Re: [git pull] RT scheduler updates for tip, Ingo Molnar, (Mon Dec 8, 7:32 am)
[PATCH] sched: fix build failure in kernel/sched_rt.c, Ingo Molnar, (Mon Dec 8, 9:05 am)
Re: [git pull] RT scheduler updates for tip, Ingo Molnar, (Mon Dec 8, 9:12 am)
Re: [PATCH] sched: fix build failure in kernel/sched_rt.c, Gregory Haskins, (Mon Dec 8, 9:14 am)
Re: [git pull] RT scheduler updates for tip, Gregory Haskins, (Mon Dec 8, 9:57 am)
Re: [git pull] RT scheduler updates for tip, Gregory Haskins, (Tue Dec 9, 7:35 am)
Re: [git pull] RT scheduler updates for tip, Ingo Molnar, (Fri Dec 12, 4:34 am)
Re: [git pull] RT scheduler updates for tip, Ingo Molnar, (Fri Dec 12, 4:49 am)
Re: [git pull] RT scheduler updates for tip, Gregory Haskins, (Mon Dec 29, 8:37 am)
Re: [git pull] RT scheduler updates for tip, Gregory Haskins, (Mon Dec 29, 11:13 am)
Re: [git pull] RT scheduler updates for tip, Ingo Molnar, (Sat Jan 10, 9:01 pm)
Re: [git pull] RT scheduler updates for tip, Ingo Molnar, (Sun Jan 11, 2:53 am)
Re: [git pull] RT scheduler updates for tip, Gregory Haskins, (Mon Jan 12, 7:45 am)
Re: [git pull] RT scheduler updates for tip, Ingo Molnar, (Mon Jan 12, 7:45 am)
Re: [git pull] RT scheduler updates for tip, Gregory Haskins, (Mon Jan 12, 8:05 am)
[git pull] fixes for tip/sched/rt, Gregory Haskins, (Mon Jan 12, 12:23 pm)
Re: [git pull] fixes for tip/sched/rt, Ingo Molnar, (Mon Jan 12, 6:43 pm)
[PATCH v3 0/2] fixes for tip/sched/rt, Gregory Haskins, (Wed Jan 14, 7:46 am)
[PATCH v3 1/2] sched: de CPP-ify the scheduler code, Gregory Haskins, (Wed Jan 14, 7:46 am)
Re: [PATCH v3 1/2] sched: de CPP-ify the scheduler code, Steven Rostedt, (Wed Jan 14, 8:11 am)
Re: [PATCH v3 1/2] sched: de CPP-ify the scheduler code, Gregory Haskins, (Wed Jan 14, 8:28 am)
Re: [PATCH v3 0/2] fixes for tip/sched/rt, Ingo Molnar, (Thu Jan 15, 5:30 am)
Re: [PATCH v3 0/2] fixes for tip/sched/rt, Ingo Molnar, (Fri Jan 16, 6:35 am)
Re: [PATCH v3 0/2] fixes for tip/sched/rt, Gregory Haskins, (Fri Jan 16, 6:45 am)
Re: [PATCH v3 0/2] fixes for tip/sched/rt, Peter Zijlstra, (Fri Jan 16, 6:46 am)
Re: [PATCH v3 0/2] fixes for tip/sched/rt, Gregory Haskins, (Fri Jan 16, 7:02 am)
Re: [PATCH v3 0/2] fixes for tip/sched/rt, Ingo Molnar, (Fri Jan 16, 7:02 am)