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:
parent
e607137142
commit
8e4e09be2d
|
@ -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 */
|
||||||
|
|
|
@ -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 */
|
|
||||||
|
|
|
@ -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 */
|
|
||||||
|
|
|
@ -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 */
|
|
||||||
|
|
|
@ -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 */
|
|
||||||
|
|
Loading…
Reference in New Issue