Module: xenomai-forge
Branch: next
Commit: 9d52714166eee2d8240e52ef77d2cf0a0ba83c75
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=9d52714166eee2d8240e52ef77d2cf0a0ba83c75

Author: Philippe Gerum <r...@xenomai.org>
Date:   Fri Mar 14 10:43:01 2014 +0100

cobalt/arm: silence unused warnings for fpu-less builds

---

 kernel/cobalt/arch/arm/thread.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/kernel/cobalt/arch/arm/thread.c b/kernel/cobalt/arch/arm/thread.c
index f5c7528..a6e5dc3 100644
--- a/kernel/cobalt/arch/arm/thread.c
+++ b/kernel/cobalt/arch/arm/thread.c
@@ -27,8 +27,6 @@
 #include <asm/mmu_context.h>
 #include <cobalt/kernel/thread.h>
 
-static unsigned vfp_checked;
-static DEFINE_MUTEX(vfp_check_lock);
 struct static_key __xeno_vfp_key = STATIC_KEY_INIT_TRUE;
 
 asmlinkage void __asm_thread_switch(struct thread_info *out,
@@ -37,6 +35,10 @@ asmlinkage void __asm_thread_switch(struct thread_info *out,
 asmlinkage void __asm_thread_trampoline(void);
 
 #if defined(CONFIG_XENO_HW_FPU) && defined(CONFIG_VFP)
+
+static unsigned int vfp_checked;
+static DEFINE_MUTEX(vfp_check_lock);
+
 asmlinkage void __asm_vfp_save(union vfp_state *vfp, unsigned int fpexc);
 
 asmlinkage void __asm_vfp_load(union vfp_state *vfp, unsigned int cpu);


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to