From 3e4b3ada5e674fc77e5220c5ed0a913cd25103ce Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Wed, 14 Jul 2021 15:40:40 -0700 Subject: [PATCH] syslog:syslog_channel:Fix compiler warnings syslog_channel.c:98:8: error: unknown type name 'sem_t' syslog/syslog_channel.c:99:14: error: 'g_syslog_default_sem' defined but not used --- drivers/syslog/syslog_channel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/syslog/syslog_channel.c b/drivers/syslog/syslog_channel.c index c05c4ba1df..bff3d8d1cc 100644 --- a/drivers/syslog/syslog_channel.c +++ b/drivers/syslog/syslog_channel.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -95,7 +96,9 @@ static struct syslog_channel_s g_rpmsg_channel = #endif #if defined(CONFIG_SYSLOG_DEFAULT) +# if defined(CONFIG_ARCH_LOWPUTC) static sem_t g_syslog_default_sem = SEM_INITIALIZER(1); +# endif static const struct syslog_channel_ops_s g_default_channel_ops = {