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 <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-01-04 23:21:05 +08:00 committed by Petro Karashchenko
parent 8f823ce320
commit 1a59f4ed00
4 changed files with 6 additions and 3 deletions

View File

@ -39,7 +39,6 @@
#include <nuttx/fs/fs.h> #include <nuttx/fs/fs.h>
#include <nuttx/fs/ioctl.h> #include <nuttx/fs/ioctl.h>
#include <nuttx/video/fb.h> #include <nuttx/video/fb.h>
#include <nuttx/mm/map.h>
/**************************************************************************** /****************************************************************************
* Private Types * Private Types

View File

@ -38,7 +38,6 @@
#include <nuttx/video/imgsensor.h> #include <nuttx/video/imgsensor.h>
#include <nuttx/video/imgdata.h> #include <nuttx/video/imgdata.h>
#include <nuttx/mm/map.h>
#include "video_framebuff.h" #include "video_framebuff.h"

View File

@ -23,7 +23,6 @@
****************************************************************************/ ****************************************************************************/
#include <nuttx/config.h> #include <nuttx/config.h>
#include <nuttx/mm/map.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/mman.h> #include <sys/mman.h>

View File

@ -29,6 +29,12 @@
#include <nuttx/queue.h> #include <nuttx/queue.h>
#include <nuttx/mutex.h> #include <nuttx/mutex.h>
/****************************************************************************
* Forward declarations
****************************************************************************/
struct task_group_s;
/**************************************************************************** /****************************************************************************
* Public Types * Public Types
****************************************************************************/ ****************************************************************************/