This is an automated email from the ASF dual-hosted git repository. pkarashchenko pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit f35ec7727d24753394eb38d36adddedcb8813b0e Author: Xiang Xiao <xiaoxi...@xiaomi.com> AuthorDate: Sat Nov 18 20:10:27 2023 +0800 Fix syslog/ramlog.c:698:7: warning: implicit declaration of function ‘spin_lock_init’ Signed-off-by: Xiang Xiao <xiaoxi...@xiaomi.com> --- include/nuttx/spinlock.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/include/nuttx/spinlock.h b/include/nuttx/spinlock.h index e0663afda0..943932f241 100644 --- a/include/nuttx/spinlock.h +++ b/include/nuttx/spinlock.h @@ -54,9 +54,7 @@ typedef atomic_int rwlock_t; # define SP_LOCKED 1 /* The Locked state */ typedef uint8_t spinlock_t; -#else - -#ifdef CONFIG_TICKET_SPINLOCK +#elif defined(CONFIG_TICKET_SPINLOCK) union spinlock_u { @@ -86,7 +84,7 @@ typedef union spinlock_u spinlock_t; #include <arch/spinlock.h> -#endif +#endif /* CONFIG_SPINLOCK */ /**************************************************************************** * Pre-processor Definitions @@ -393,8 +391,6 @@ void spin_clrbit(FAR volatile cpu_set_t *set, unsigned int cpu, FAR volatile spinlock_t *orlock); #endif -#endif /* CONFIG_SPINLOCK */ - /**************************************************************************** * Name: spin_initialize *