You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "anchao (via GitHub)" <gi...@apache.org> on 2024/03/15 07:50:40 UTC

[PR] stdio/file: unify group file list to common single queue [nuttx]

anchao opened a new pull request, #11925:
URL: https://github.com/apache/nuttx/pull/11925

   ## Summary
   
   stdio/file: unify group file list to common single queue
   
   unify group file list to common single queue
   
   Signed-off-by: chao an <an...@lixiang.com>
   
   
   ## Impact
   
   N/A
   
   ## Testing
   
   ci-check


-- 
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-unsubscribe@nuttx.apache.org

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


Re: [PR] stdio/file: unify group file list to common single queue [nuttx]

Posted by "anchao (via GitHub)" <gi...@apache.org>.
anchao commented on code in PR #11925:
URL: https://github.com/apache/nuttx/pull/11925#discussion_r1528006324


##########
libs/libc/stdio/lib_libflushall.c:
##########
@@ -28,6 +28,8 @@
 #include <fcntl.h>
 #include <errno.h>
 
+#include <nuttx/nuttx.h>

Review Comment:
   see line 71 and 124



-- 
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-unsubscribe@nuttx.apache.org

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


Re: [PR] stdio/file: unify group file list to common single queue [nuttx]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on code in PR #11925:
URL: https://github.com/apache/nuttx/pull/11925#discussion_r1527871838


##########
libs/libc/stdio/lib_libflushall.c:
##########
@@ -28,6 +28,8 @@
 #include <fcntl.h>
 #include <errno.h>
 
+#include <nuttx/nuttx.h>

Review Comment:
   but no change



-- 
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-unsubscribe@nuttx.apache.org

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


Re: [PR] stdio/file: unify group file list to common single queue [nuttx]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on code in PR #11925:
URL: https://github.com/apache/nuttx/pull/11925#discussion_r1526157228


##########
sched/tls/task_initinfo.c:
##########
@@ -25,6 +25,7 @@
 #include <errno.h>
 #include <fcntl.h>
 
+#include <nuttx/nuttx.h>

Review Comment:
   ditto



##########
include/nuttx/fs/fs.h:
##########
@@ -538,7 +538,7 @@ struct filelist
 #ifdef CONFIG_FILE_STREAM
 struct file_struct
 {
-  FAR struct file_struct *fs_next;      /* Pointer to next file stream */
+  sq_entry_t              fs_entry;     /* Entry of file stream */

Review Comment:
   should we include queue.h in this file and remove from other source file?



##########
libs/libc/stdio/lib_libflushall.c:
##########
@@ -28,6 +28,8 @@
 #include <fcntl.h>
 #include <errno.h>
 
+#include <nuttx/nuttx.h>

Review Comment:
   why need nuttx/nuttx.h



##########
sched/tls/task_uninitinfo.c:
##########
@@ -22,9 +22,11 @@
  * Included Files
  ****************************************************************************/
 
+#include <nuttx/nuttx.h>
 #include <nuttx/kmalloc.h>
 #include <nuttx/mutex.h>
 #include <nuttx/list.h>
+#include <nuttx/queue.h>

Review Comment:
   remove



-- 
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-unsubscribe@nuttx.apache.org

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


Re: [PR] stdio/file: unify group file list to common single queue [nuttx]

Posted by "anchao (via GitHub)" <gi...@apache.org>.
anchao commented on code in PR #11925:
URL: https://github.com/apache/nuttx/pull/11925#discussion_r1527931472


##########
libs/libc/stdio/lib_libflushall.c:
##########
@@ -28,6 +28,8 @@
 #include <fcntl.h>
 #include <errno.h>
 
+#include <nuttx/nuttx.h>

Review Comment:
   This file requires the implementation of container_of()



-- 
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-unsubscribe@nuttx.apache.org

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


Re: [PR] stdio/file: unify group file list to common single queue [nuttx]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #11925:
URL: https://github.com/apache/nuttx/pull/11925


-- 
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-unsubscribe@nuttx.apache.org

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


Re: [PR] stdio/file: unify group file list to common single queue [nuttx]

Posted by "anchao (via GitHub)" <gi...@apache.org>.
anchao commented on code in PR #11925:
URL: https://github.com/apache/nuttx/pull/11925#discussion_r1527654977


##########
sched/tls/task_uninitinfo.c:
##########
@@ -22,9 +22,11 @@
  * Included Files
  ****************************************************************************/
 
+#include <nuttx/nuttx.h>
 #include <nuttx/kmalloc.h>
 #include <nuttx/mutex.h>
 #include <nuttx/list.h>
+#include <nuttx/queue.h>

Review Comment:
   Done



##########
sched/tls/task_initinfo.c:
##########
@@ -25,6 +25,7 @@
 #include <errno.h>
 #include <fcntl.h>
 
+#include <nuttx/nuttx.h>

Review Comment:
   Done



##########
libs/libc/stdio/lib_libflushall.c:
##########
@@ -28,6 +28,8 @@
 #include <fcntl.h>
 #include <errno.h>
 
+#include <nuttx/nuttx.h>

Review Comment:
   Done



##########
include/nuttx/fs/fs.h:
##########
@@ -538,7 +538,7 @@ struct filelist
 #ifdef CONFIG_FILE_STREAM
 struct file_struct
 {
-  FAR struct file_struct *fs_next;      /* Pointer to next file stream */
+  sq_entry_t              fs_entry;     /* Entry of file stream */

Review Comment:
   Done



-- 
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-unsubscribe@nuttx.apache.org

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


Re: [PR] stdio/file: unify group file list to common single queue [nuttx]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on code in PR #11925:
URL: https://github.com/apache/nuttx/pull/11925#discussion_r1527958592


##########
libs/libc/stdio/lib_libflushall.c:
##########
@@ -28,6 +28,8 @@
 #include <fcntl.h>
 #include <errno.h>
 
+#include <nuttx/nuttx.h>

Review Comment:
   but nobody call container_of in this file?



-- 
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-unsubscribe@nuttx.apache.org

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