summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-15 18:11:19 +1300
committerSimon Glass <sjg@chromium.org>2021-03-27 15:04:31 +1300
commitc197f6e27923b4cff9d782cd9be7a058d5d65aa2 (patch)
tree566f4804f2fd12f1691aeaec390e78d32977e794 /include
parent529d5f96cf7be9ae60db1a5f1c2a2aa0a3d5d26d (diff)
downloadu-boot-c197f6e27923b4cff9d782cd9be7a058d5d65aa2.tar.gz
u-boot-c197f6e27923b4cff9d782cd9be7a058d5d65aa2.tar.xz
u-boot-c197f6e27923b4cff9d782cd9be7a058d5d65aa2.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/malloc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/malloc.h b/include/malloc.h
index e15e528a2e..024b18be00 100644
--- a/include/malloc.h
+++ b/include/malloc.h
@@ -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