You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/05/13 12:52:08 UTC
[incubator-nuttx] 01/04: arch/arm/src/stm32h7/stm32_allocateheap.c:
Fix compilation when CONFIG_MM_REGIONS == 1
This is an automated email from the ASF dual-hosted git repository.
gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 2ef571453a116458430e582ec28f0b7fbb7f9cc2
Author: Jukka Laitinen <ju...@intel.com>
AuthorDate: Fri Apr 17 13:12:05 2020 +0300
arch/arm/src/stm32h7/stm32_allocateheap.c: Fix compilation when CONFIG_MM_REGIONS == 1
Signed-off-by: Jukka Laitinen <ju...@intel.com>
---
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 f65db6d..376738b 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