From 8155102f7dba383d10ff66399be3ec7666df10aa Mon Sep 17 00:00:00 2001 From: zhangshoukui Date: Mon, 23 Sep 2024 12:46:23 +0800 Subject: [PATCH] FS_RAMMAP depends on FS_REFCOUNT and remove useless macro Signed-off-by: zhangshoukui --- fs/mmap/Kconfig | 1 + fs/mmap/fs_rammap.c | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/fs/mmap/Kconfig b/fs/mmap/Kconfig index dbe87b5d3e..4d0b2ff963 100644 --- a/fs/mmap/Kconfig +++ b/fs/mmap/Kconfig @@ -6,6 +6,7 @@ config FS_RAMMAP bool "File mapping emulation" default n + depends on FS_REFCOUNT ---help--- NuttX operates in a flat open address space and is focused on MCUs that do support Memory Management Units (MMUs). Therefore, NuttX generally does not diff --git a/fs/mmap/fs_rammap.c b/fs/mmap/fs_rammap.c index d3594ef77c..d25458ff42 100644 --- a/fs/mmap/fs_rammap.c +++ b/fs/mmap/fs_rammap.c @@ -40,8 +40,6 @@ #include "fs_rammap.h" #include "sched/sched.h" -#ifdef CONFIG_FS_RAMMAP - /**************************************************************************** * Public Data ****************************************************************************/ @@ -347,5 +345,3 @@ errout_with_region: return ret; } - -#endif /* CONFIG_FS_RAMMAP */