Fix syslog/ramlog.c:698:7: warning: implicit declaration of function ‘spin_lock_init’

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2023-11-19 20:22:50 +01:00
committed by Petro Karashchenko
parent a3e3e0b1ec
commit f35ec7727d
+2 -6
View File
@@ -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
*