From e318b040f83a2dee59a47697c41ef6a51dcc9e6c Mon Sep 17 00:00:00 2001 From: Jiuzhu Dong Date: Thu, 20 May 2021 21:00:07 +0800 Subject: [PATCH] syslog/syslog_channel: fix compile warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit N/A syslog/syslog_channel.c: In function ‘syslog_default_putc’: syslog/syslog_channel.c:139:10: warning: implicit declaration of function ‘up_putc’ [-Wimplicit-function-declaration] 139 | return up_putc(ch); | ^~~~~~~ Change-Id: I30f607c000fefc6a1189397e6ae2320c562a67ec Signed-off-by: Jiuzhu Dong --- drivers/syslog/syslog_channel.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/syslog/syslog_channel.c b/drivers/syslog/syslog_channel.c index 47f62c3f3ae..80bca5fb828 100644 --- a/drivers/syslog/syslog_channel.c +++ b/drivers/syslog/syslog_channel.c @@ -33,9 +33,13 @@ #ifdef CONFIG_RAMLOG_SYSLOG # include -#elif defined(CONFIG_SYSLOG_RPMSG) +#endif + +#ifdef CONFIG_SYSLOG_RPMSG # include -#elif defined(CONFIG_ARCH_LOWPUTC) +#endif + +#ifdef CONFIG_ARCH_LOWPUTC # include #endif