Module: xenomai-jki
Branch: for-upstream
Commit: e9a5770b327452ea651a7fc8aaca91afc7563be9
URL:    
http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=e9a5770b327452ea651a7fc8aaca91afc7563be9

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Fri Jul  8 15:34:03 2011 +0200

nucleus: Fix build warning

sched is only used under PREEMPT_RT.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 ksrc/nucleus/shadow.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ksrc/nucleus/shadow.c b/ksrc/nucleus/shadow.c
index 0efb829..e357351 100644
--- a/ksrc/nucleus/shadow.c
+++ b/ksrc/nucleus/shadow.c
@@ -758,7 +758,9 @@ static void lostage_handler(void *cookie)
        int cpu, reqnum, type, arg, sig, sigarg;
        struct __lostagerq *rq;
        struct task_struct *p;
+#ifdef CONFIG_PREEMPT_RT
        struct xnsched *sched;
+#endif
 
        cpu = smp_processor_id();
        rq = &lostagerq[cpu];


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to