Skip to content
Permalink
Browse files

kernel: fix #endif quard error for k_float_disable

The implementation of z_impl_float_disable was missplaced
inside the #ifdef SPIN_VALIDATE. Fixing it.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
  • Loading branch information...
ioannisg authored and andrewboie committed Jul 10, 2019
1 parent ffab197 commit 0e67759985e0b36676ab453c4b0436b4c26e333b
Showing with 2 additions and 2 deletions.
  1. +2 −2 kernel/thread.c
@@ -791,6 +791,8 @@ void z_spin_lock_set_owner(struct k_spinlock *l)
l->thread_cpu = _current_cpu->id | (uintptr_t)_current;
}

#endif

int z_impl_k_float_disable(struct k_thread *thread)
{
#if defined(CONFIG_FLOAT) && defined(CONFIG_FP_SHARING)
@@ -810,5 +812,3 @@ Z_SYSCALL_HANDLER(k_float_disable, thread_p)
return z_impl_k_float_disable((struct k_thread *)thread_p);
}
#endif /* CONFIG_USERSPACE */

#endif

0 comments on commit 0e67759

Please sign in to comment.
You can’t perform that action at this time.