[Concept,10/37] malloc: Fix assert warning

Message ID 20251201170529.3237986-11-sjg@u-boot.org
State New
Headers
Series malloc: Import dlmalloc 2.8.6 |

Commit Message

Simon Glass Dec. 1, 2025, 5:04 p.m. UTC
  From: Simon Glass <simon.glass@canonical.com>

Include log.h early to prevent an assert() redefinition warning.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
---

 common/dlmalloc.c | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/common/dlmalloc.c b/common/dlmalloc.c
index 480dd46c0cf..ff13a779211 100644
--- a/common/dlmalloc.c
+++ b/common/dlmalloc.c
@@ -562,6 +562,7 @@  MAX_RELEASE_CHECK_RATE   default: 4095 unless not HAVE_MMAP
 #define MALLOC_FAILURE_ACTION
 #define ABORT do {} while (1)
 
+#include <log.h>
 #include <malloc.h>
 #include <mapmem.h>
 #include <asm/global_data.h>