syslog: Include nuttx/syslog/syslog.h in include/nuttx/syslog/syslog_rpmsg.h

to avoid struct syslog_channel_s used before definition
and remove the unnecessary inclusion

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-01-31 17:39:18 +08:00 committed by Petro Karashchenko
parent 09c4c2f35f
commit 6a0dbba62b
3 changed files with 1 additions and 10 deletions

View File

@ -34,12 +34,9 @@
#include <nuttx/irq.h>
#include <nuttx/rptun/openamp.h>
#include <nuttx/syslog/syslog.h>
#include <nuttx/syslog/syslog_rpmsg.h>
#include <nuttx/wqueue.h>
#include <nuttx/compiler.h>
#include "syslog.h"
#include "syslog_rpmsg.h"
/****************************************************************************
@ -327,8 +324,6 @@ int syslog_rpmsg_putc(FAR struct syslog_channel_s *channel, int ch)
FAR struct syslog_rpmsg_s *priv = &g_syslog_rpmsg;
irqstate_t flags;
UNUSED(channel);
flags = enter_critical_section();
syslog_rpmsg_putchar(priv, ch, true);
leave_critical_section(flags);
@ -342,8 +337,6 @@ int syslog_rpmsg_flush(FAR struct syslog_channel_s *channel)
FAR struct syslog_rpmsg_s *priv = &g_syslog_rpmsg;
irqstate_t flags;
UNUSED(channel);
flags = enter_critical_section();
if (priv->head - priv->flush > priv->size)
@ -369,8 +362,6 @@ ssize_t syslog_rpmsg_write(FAR struct syslog_channel_s *channel,
irqstate_t flags;
size_t nwritten;
UNUSED(channel);
flags = enter_critical_section();
for (nwritten = 1; nwritten <= buflen; nwritten++)
{

View File

@ -28,7 +28,6 @@
#include <nuttx/kmalloc.h>
#include <nuttx/rptun/openamp.h>
#include <nuttx/syslog/syslog.h>
#include <nuttx/syslog/syslog_rpmsg.h>
#include "syslog.h"

View File

@ -26,6 +26,7 @@
****************************************************************************/
#include <nuttx/config.h>
#include <nuttx/syslog/syslog.h>
/****************************************************************************
* Public Function Prototypes