diff --git a/mm/shm/shm.h b/mm/shm/shm.h index 6d55167ef2..02d9a0281d 100644 --- a/mm/shm/shm.h +++ b/mm/shm/shm.h @@ -36,8 +36,6 @@ #include #include -#ifdef CONFIG_MM_SHM - /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ @@ -143,5 +141,4 @@ extern struct shm_info_s g_shminfo; void shm_destroy(int shmid); -#endif /* CONFIG_MM_SHM */ #endif /* __MM_SHM_SHM_H */ diff --git a/mm/shm/shmat.c b/mm/shm/shmat.c index a6b08d210c..73dbfe789a 100644 --- a/mm/shm/shmat.c +++ b/mm/shm/shmat.c @@ -39,8 +39,6 @@ #include "sched/sched.h" #include "shm/shm.h" -#ifdef CONFIG_MM_SHM - /**************************************************************************** * Private Functions ****************************************************************************/ @@ -309,4 +307,3 @@ errout_with_ret: return (FAR void *)ERROR; } -#endif /* CONFIG_MM_SHM */ diff --git a/mm/shm/shmctl.c b/mm/shm/shmctl.c index 01e1342465..3ffa9e1081 100644 --- a/mm/shm/shmctl.c +++ b/mm/shm/shmctl.c @@ -40,8 +40,6 @@ #include "shm/shm.h" -#ifdef CONFIG_MM_SHM - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -249,4 +247,3 @@ void shm_destroy(int shmid) memset(region, 0, sizeof(struct shm_region_s)); } -#endif /* CONFIG_MM_SHM */ diff --git a/mm/shm/shmdt.c b/mm/shm/shmdt.c index 073e0f925e..41aead6059 100644 --- a/mm/shm/shmdt.c +++ b/mm/shm/shmdt.c @@ -39,8 +39,6 @@ #include "sched/sched.h" #include "shm/shm.h" -#ifdef CONFIG_MM_SHM - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -114,4 +112,3 @@ int shmdt(FAR const void *shmaddr) return ret; } -#endif /* CONFIG_MM_SHM */ diff --git a/mm/shm/shmget.c b/mm/shm/shmget.c index 857c4fe792..fb90d1d68f 100644 --- a/mm/shm/shmget.c +++ b/mm/shm/shmget.c @@ -38,8 +38,6 @@ #include "shm/shm.h" -#ifdef CONFIG_MM_SHM - /**************************************************************************** * Public Data ****************************************************************************/ @@ -483,4 +481,3 @@ errout: return ERROR; } -#endif /* CONFIG_MM_SHM */