arm/allocateheap: fix multiple definition of 'up_allocate_heap'
ld: arch/libarch.a(cxd56_allocateheap.c.obj): in function `up_allocate_heap': arch/arm/src/cxd56xx/cxd56_allocateheap.c:113: multiple definition of `up_allocate_heap'; arch/libarch.a(arm_allocateheap.c.obj): arch/arm/src/common/arm_allocateheap.c:110: first defined here Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
b232508bd9
commit
0d28168679
|
@ -105,7 +105,7 @@
|
||||||
#ifdef CONFIG_BUILD_KERNEL
|
#ifdef CONFIG_BUILD_KERNEL
|
||||||
void up_allocate_kheap(void **heap_start, size_t *heap_size)
|
void up_allocate_kheap(void **heap_start, size_t *heap_size)
|
||||||
#else
|
#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
|
#endif
|
||||||
{
|
{
|
||||||
#if defined(CONFIG_BUILD_PROTECTED) && defined(CONFIG_MM_KERNEL_HEAP)
|
#if defined(CONFIG_BUILD_PROTECTED) && defined(CONFIG_MM_KERNEL_HEAP)
|
||||||
|
|
Loading…
Reference in New Issue