From e062f4591c310c86b4685079e4084bfb210972b0 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Sat, 1 Jun 2024 09:53:33 +0200 Subject: [PATCH] sched/task/task_exithook.c: fix gcc14 error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit umm_memdump() should be always declared otherwise we get error when DEBUG_MM=n: sched/task/task_exithook.c:468:7: error: implicit declaration of function ‘umm_memdump’; did you mean ‘mm_memdump’? [-Wimplicit-function-declaration] --- include/nuttx/mm/mm.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/nuttx/mm/mm.h b/include/nuttx/mm/mm.h index 3e44094790..70d5477bc4 100644 --- a/include/nuttx/mm/mm.h +++ b/include/nuttx/mm/mm.h @@ -375,6 +375,10 @@ struct mallinfo_task kmm_mallinfo_task(FAR const struct malltask *task); void mm_memdump(FAR struct mm_heap_s *heap, FAR const struct mm_memdump_s *dump); +/* Functions contained in umm_memdump.c *************************************/ + +void umm_memdump(FAR const struct mm_memdump_s *dump); + #ifdef CONFIG_DEBUG_MM /* Functions contained in mm_checkcorruption.c ******************************/ @@ -384,10 +388,6 @@ void mm_checkcorruption(FAR struct mm_heap_s *heap); FAR void umm_checkcorruption(void); -/* Functions contained in umm_memdump.c *************************************/ - -void umm_memdump(FAR const struct mm_memdump_s *dump); - /* Functions contained in kmm_checkcorruption.c *****************************/ #ifdef CONFIG_MM_KERNEL_HEAP