From 2ef571453a116458430e582ec28f0b7fbb7f9cc2 Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Fri, 17 Apr 2020 13:12:05 +0300 Subject: [PATCH] arch/arm/src/stm32h7/stm32_allocateheap.c: Fix compilation when CONFIG_MM_REGIONS == 1 Signed-off-by: Jukka Laitinen --- arch/arm/src/stm32h7/stm32_allocateheap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/src/stm32h7/stm32_allocateheap.c b/arch/arm/src/stm32h7/stm32_allocateheap.c index f65db6d4efa..376738bd05a 100644 --- a/arch/arm/src/stm32h7/stm32_allocateheap.c +++ b/arch/arm/src/stm32h7/stm32_allocateheap.c @@ -300,6 +300,7 @@ void up_allocate_kheap(FAR void **heap_start, size_t *heap_size) } #endif +#if (CONFIG_MM_REGIONS > 1) /**************************************************************************** * Name: addregion * @@ -389,3 +390,4 @@ void arm_addregion(void) } #endif } +#endif