This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit c5b89376da056902aa9f09304a94421ef9ede0a4 Author: yangao1 <[email protected]> AuthorDate: Tue Apr 29 14:57:50 2025 +0800 misc/dev_mem.c:add <nuttx/fs/fs.h> to fix compile error Without <nuttx/fs/fs.h>, enabling CONFIG_DEV_MEM=y fails to build: struct file is undeclared and the file does not compile. Include <nuttx/fs/fs.h> to fix this. Signed-off-by: yangao1 <[email protected]> Signed-off-by: wangjianyu3 <[email protected]> --- drivers/misc/dev_mem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/misc/dev_mem.c b/drivers/misc/dev_mem.c index 36385d9e390..707a2b17c11 100644 --- a/drivers/misc/dev_mem.c +++ b/drivers/misc/dev_mem.c @@ -25,6 +25,7 @@ ****************************************************************************/ #include <nuttx/drivers/drivers.h> +#include <nuttx/fs/fs.h> #include <nuttx/kmalloc.h> #include <nuttx/memoryregion.h> #include <sys/param.h>
