This is an automated email from the ASF dual-hosted git repository.

ligd pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit 0b8a52379c5a7f74e162de76eaa891106fb9c33e
Author: Bowen Wang <wangbow...@xiaomi.com>
AuthorDate: Fri Oct 11 11:07:15 2024 +0800

    nsh_syscmds/rpmsg: include <nuttx/rpmsg/rpmsg.h> to fix compile error
    
    nsh_syscmds.c: In function ‘cmd_rpmsg_once’:
    nsh_syscmds.c:567:13: error: ‘RPMSGIOC_PANIC’ undeclared (first use in this 
function)
      567 |       cmd = RPMSGIOC_PANIC;
          |             ^~~~~~~~~~~~~~
    nsh_syscmds.c:567:13: note: each undeclared identifier is reported only 
once for each function it appears in
    nsh_syscmds.c:571:13: error: ‘RPMSGIOC_DUMP’ undeclared (first use in this 
function); did you mean ‘FIOC_DUMP’?
      571 |       cmd = RPMSGIOC_DUMP;
    
    Signed-off-by: Bowen Wang <wangbow...@xiaomi.com>
---
 nshlib/nsh_syscmds.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/nshlib/nsh_syscmds.c b/nshlib/nsh_syscmds.c
index 6d06dfb81..7c7156aad 100644
--- a/nshlib/nsh_syscmds.c
+++ b/nshlib/nsh_syscmds.c
@@ -25,6 +25,7 @@
 #include <nuttx/config.h>
 
 #include <nuttx/power/pm.h>
+#include <nuttx/rpmsg/rpmsg.h>
 #include <nuttx/rptun/rptun.h>
 #include <nuttx/streams.h>
 #include <sys/boardctl.h>

Reply via email to