From 1a59f4ed0024399efffa9c12528f0a9d4f1b5d8d Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Wed, 4 Jan 2023 23:21:05 +0800 Subject: [PATCH] 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 --- 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 #include #include -#include /**************************************************************************** * 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 #include -#include #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 -#include #include #include 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 #include +/**************************************************************************** + * Forward declarations + ****************************************************************************/ + +struct task_group_s; + /**************************************************************************** * Public Types ****************************************************************************/