shm: The limits have been made in Make.defs and remove useless macro in code

ifeq ($(CONFIG_MM_SHM),y)
CSRCS += shmat.c shmctl.c shmdt.c shmget.c

DEPPATH += --dep-path shm
VPATH += :shm
endif

Signed-off-by: zhangshoukui <zhangshoukui@xiaomi.com>
This commit is contained in:
zhangshoukui 2024-07-19 15:58:39 +08:00 committed by Xiang Xiao
parent e607137142
commit 8e4e09be2d
5 changed files with 0 additions and 15 deletions

View File

@ -36,8 +36,6 @@
#include <nuttx/addrenv.h> #include <nuttx/addrenv.h>
#include <nuttx/mutex.h> #include <nuttx/mutex.h>
#ifdef CONFIG_MM_SHM
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
@ -143,5 +141,4 @@ extern struct shm_info_s g_shminfo;
void shm_destroy(int shmid); void shm_destroy(int shmid);
#endif /* CONFIG_MM_SHM */
#endif /* __MM_SHM_SHM_H */ #endif /* __MM_SHM_SHM_H */

View File

@ -39,8 +39,6 @@
#include "sched/sched.h" #include "sched/sched.h"
#include "shm/shm.h" #include "shm/shm.h"
#ifdef CONFIG_MM_SHM
/**************************************************************************** /****************************************************************************
* Private Functions * Private Functions
****************************************************************************/ ****************************************************************************/
@ -309,4 +307,3 @@ errout_with_ret:
return (FAR void *)ERROR; return (FAR void *)ERROR;
} }
#endif /* CONFIG_MM_SHM */

View File

@ -40,8 +40,6 @@
#include "shm/shm.h" #include "shm/shm.h"
#ifdef CONFIG_MM_SHM
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions
****************************************************************************/ ****************************************************************************/
@ -249,4 +247,3 @@ void shm_destroy(int shmid)
memset(region, 0, sizeof(struct shm_region_s)); memset(region, 0, sizeof(struct shm_region_s));
} }
#endif /* CONFIG_MM_SHM */

View File

@ -39,8 +39,6 @@
#include "sched/sched.h" #include "sched/sched.h"
#include "shm/shm.h" #include "shm/shm.h"
#ifdef CONFIG_MM_SHM
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions
****************************************************************************/ ****************************************************************************/
@ -114,4 +112,3 @@ int shmdt(FAR const void *shmaddr)
return ret; return ret;
} }
#endif /* CONFIG_MM_SHM */

View File

@ -38,8 +38,6 @@
#include "shm/shm.h" #include "shm/shm.h"
#ifdef CONFIG_MM_SHM
/**************************************************************************** /****************************************************************************
* Public Data * Public Data
****************************************************************************/ ****************************************************************************/
@ -483,4 +481,3 @@ errout:
return ERROR; return ERROR;
} }
#endif /* CONFIG_MM_SHM */