From 85b4177913173dacbc1f39552db01c63ce667ead Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 6 Nov 2022 07:19:44 +0800 Subject: [PATCH] mm: Remove mm_ prefix from mm_[add|free]_delaylist follow the convention of other static mm functions Signed-off-by: Xiang Xiao --- mm/mm_heap/mm_free.c | 4 ++-- mm/mm_heap/mm_malloc.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mm/mm_heap/mm_free.c b/mm/mm_heap/mm_free.c index 6002b4dd4f..2a373ad7f2 100644 --- a/mm/mm_heap/mm_free.c +++ b/mm/mm_heap/mm_free.c @@ -37,7 +37,7 @@ * Private Functions ****************************************************************************/ -static void mm_add_delaylist(FAR struct mm_heap_s *heap, FAR void *mem) +static void add_delaylist(FAR struct mm_heap_s *heap, FAR void *mem) { #if defined(CONFIG_BUILD_FLAT) || defined(__KERNEL__) FAR struct mm_delaynode_s *tmp = mem; @@ -91,7 +91,7 @@ void mm_free(FAR struct mm_heap_s *heap, FAR void *mem) * Then add to the delay list. */ - mm_add_delaylist(heap, mem); + add_delaylist(heap, mem); return; } diff --git a/mm/mm_heap/mm_malloc.c b/mm/mm_heap/mm_malloc.c index baaec8f7b7..303fef3e35 100644 --- a/mm/mm_heap/mm_malloc.c +++ b/mm/mm_heap/mm_malloc.c @@ -40,7 +40,7 @@ * Private Functions ****************************************************************************/ -static void mm_free_delaylist(FAR struct mm_heap_s *heap) +static void free_delaylist(FAR struct mm_heap_s *heap) { #if defined(CONFIG_BUILD_FLAT) || defined(__KERNEL__) FAR struct mm_delaynode_s *tmp; @@ -111,7 +111,7 @@ FAR void *mm_malloc(FAR struct mm_heap_s *heap, size_t size) /* Free the delay list first */ - mm_free_delaylist(heap); + free_delaylist(heap); /* Ignore zero-length allocations */