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

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

commit bbba2448cdb7e2fac76dce2421f709a75e59a616
Author: Bowen Wang <[email protected]>
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 <[email protected]>
---
 nshlib/nsh_syscmds.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/nshlib/nsh_syscmds.c b/nshlib/nsh_syscmds.c
index 9cd6bead8..71f604bc4 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