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

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


The following commit(s) were added to refs/heads/master by this push:
     new 1a59f4ed00 mm/map: Remove the unnessary map.h inclusion in various 
drivers
1a59f4ed00 is described below

commit 1a59f4ed0024399efffa9c12528f0a9d4f1b5d8d
Author: Xiang Xiao <[email protected]>
AuthorDate: Wed Jan 4 23:21:05 2023 +0800

    mm/map: Remove the unnessary map.h inclusion in various drivers
    
    and Fix include/nuttx/mm/map.h:55:28: error: 'struct task_group_s' declared 
inside parameter list will not be visible outside of this definition or 
declaration
    
    Signed-off-by: Xiang Xiao <[email protected]>
---
 drivers/video/fb.c     | 1 -
 drivers/video/video.c  | 1 -
 fs/mmap/fs_mmap.c      | 1 -
 include/nuttx/mm/map.h | 6 ++++++
 4 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/drivers/video/fb.c b/drivers/video/fb.c
index 9a0a764ca7..6a1006220c 100644
--- a/drivers/video/fb.c
+++ b/drivers/video/fb.c
@@ -39,7 +39,6 @@
 #include <nuttx/fs/fs.h>
 #include <nuttx/fs/ioctl.h>
 #include <nuttx/video/fb.h>
-#include <nuttx/mm/map.h>
 
 /****************************************************************************
  * Private Types
diff --git a/drivers/video/video.c b/drivers/video/video.c
index 3c45408603..61fbd59eaf 100644
--- a/drivers/video/video.c
+++ b/drivers/video/video.c
@@ -38,7 +38,6 @@
 
 #include <nuttx/video/imgsensor.h>
 #include <nuttx/video/imgdata.h>
-#include <nuttx/mm/map.h>
 
 #include "video_framebuff.h"
 
diff --git a/fs/mmap/fs_mmap.c b/fs/mmap/fs_mmap.c
index 5717ed1cd9..36e710ad23 100644
--- a/fs/mmap/fs_mmap.c
+++ b/fs/mmap/fs_mmap.c
@@ -23,7 +23,6 @@
  ****************************************************************************/
 
 #include <nuttx/config.h>
-#include <nuttx/mm/map.h>
 
 #include <sys/types.h>
 #include <sys/mman.h>
diff --git a/include/nuttx/mm/map.h b/include/nuttx/mm/map.h
index cf1d38f047..ffb4d18fbc 100644
--- a/include/nuttx/mm/map.h
+++ b/include/nuttx/mm/map.h
@@ -29,6 +29,12 @@
 #include <nuttx/queue.h>
 #include <nuttx/mutex.h>
 
+/****************************************************************************
+ * Forward declarations
+ ****************************************************************************/
+
+struct task_group_s;
+
 /****************************************************************************
  * Public Types
  ****************************************************************************/

Reply via email to