mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
malloc: Export malloc_simple_info()
Export this function always so it can be used behind IS_ENABLED() instead of requiring an #ifdef. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
529d5f96cf
commit
c197f6e279
1 changed files with 2 additions and 1 deletions
|
@ -880,6 +880,8 @@ extern Void_t* sbrk();
|
|||
|
||||
#else
|
||||
|
||||
void malloc_simple_info(void);
|
||||
|
||||
#if CONFIG_IS_ENABLED(SYS_MALLOC_SIMPLE)
|
||||
#define malloc malloc_simple
|
||||
#define realloc realloc_simple
|
||||
|
@ -887,7 +889,6 @@ extern Void_t* sbrk();
|
|||
static inline void free(void *ptr) {}
|
||||
void *calloc(size_t nmemb, size_t size);
|
||||
void *realloc_simple(void *ptr, size_t size);
|
||||
void malloc_simple_info(void);
|
||||
#else
|
||||
|
||||
# ifdef USE_DL_PREFIX
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue