This is an automated email from the ASF dual-hosted git repository.

lupyuen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 3770c0871ce mm:use mm_malloc inside of mm_memalign
3770c0871ce is described below

commit 3770c0871ceea447b387b00d7cdc70ecbaa9ef06
Author: anjiahao <[email protected]>
AuthorDate: Tue Feb 24 14:11:21 2026 +0800

    mm:use mm_malloc inside of mm_memalign
    
    Test build breadxavr:nsh:
    
    ➜ size nuttx_with_mm_memalgin
       text    data     bss     dec     hex filename
      53018      91     556   53665    d1a1 nuttx_with_mm_memalgin
    ~/work/nuttxwork/nuttx
    ➜ size nuttx
       text    data     bss     dec     hex filename
      51580      91     556   52227    cc03 nuttx
    
    Signed-off-by: anjiahao <[email protected]>
---
 mm/mm_heap/mm_initialize.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/mm_heap/mm_initialize.c b/mm/mm_heap/mm_initialize.c
index cf111e8d3cf..c0f09b8c501 100644
--- a/mm/mm_heap/mm_initialize.c
+++ b/mm/mm_heap/mm_initialize.c
@@ -259,7 +259,7 @@ mm_initialize_heap(FAR const struct mm_heap_config_s 
*config)
     }
   else
     {
-      heap = mm_memalign(heap, MM_ALIGN, sizeof(struct mm_heap_s));
+      heap = mm_malloc(heap, sizeof(struct mm_heap_s));
       if (heap == NULL)
         {
           return NULL;

Reply via email to