diff --git a/arch/arm/src/common/arm_allocateheap.c b/arch/arm/src/common/arm_allocateheap.c index 83b878423a..4d571fc3a0 100644 --- a/arch/arm/src/common/arm_allocateheap.c +++ b/arch/arm/src/common/arm_allocateheap.c @@ -105,7 +105,7 @@ #ifdef CONFIG_BUILD_KERNEL void up_allocate_kheap(void **heap_start, size_t *heap_size) #else -void up_allocate_heap(void **heap_start, size_t *heap_size) +void weak_function up_allocate_heap(void **heap_start, size_t *heap_size) #endif { #if defined(CONFIG_BUILD_PROTECTED) && defined(CONFIG_MM_KERNEL_HEAP)