anchao commented on code in PR #11177:
URL: https://github.com/apache/nuttx/pull/11177#discussion_r1393621487


##########
include/nuttx/spawn.h:
##########
@@ -100,9 +100,14 @@ extern "C"
 void add_file_action(FAR posix_spawn_file_actions_t *file_action,
                      FAR struct spawn_general_file_action_s *entry);
 
+struct tcb_s;

Review Comment:
   spawn_file_actions depends on struct tcb_s:
   
   ```
   In file included from 
/home/archer/code/nuttx/n8/nuttx/include/nuttx/fs/fs.h:42,
                    from group/group_setuptaskfiles.c:30:
   /home/archer/code/nuttx/n8/nuttx/include/nuttx/spawn.h:103:42: note: 
expected 'struct tcb_s *' but argument is of type 'struct tcb_s *'
     103 | int spawn_file_actions(FAR struct tcb_s *tcb,
         |                            ~~~~~~~~~~~~~~^~~
   
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to