From f35ec7727d24753394eb38d36adddedcb8813b0e Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sat, 18 Nov 2023 20:10:27 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20syslog/ramlog.c:698:7:=20warning:=20impli?= =?UTF-8?q?cit=20declaration=20of=20function=20=E2=80=98spin=5Flock=5Finit?= =?UTF-8?q?=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Xiang Xiao --- 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 e0663afda02..943932f241c 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 -#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 *