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

From: Gregory Haskins
Date: Mon Dec 08 2008 - 11:11:22 EST


Ingo Molnar wrote:
> From a9750309ef51081abb17268936769511b3683488 Mon Sep 17 00:00:00 2001
> From: Ingo Molnar <mingo@xxxxxxx>
> 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
>

Doh!

-Greg "always breakin' uniprocessor" Haskins

(sorry)

> 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
>


Attachment: signature.asc
Description: OpenPGP digital signature