This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 484eb17 fix #if condition of g_mmheap for BUILD_KERNEL.
484eb17 is described below
commit 484eb1795b0b0a38793d56e53803713b40f3297b
Author: Oki Minabe <[email protected]>
AuthorDate: Sat Feb 19 18:09:18 2022 +0900
fix #if condition of g_mmheap for BUILD_KERNEL.
---
mm/umm_heap/umm_globals.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/umm_heap/umm_globals.c b/mm/umm_heap/umm_globals.c
index b73fc82..b5e6290 100644
--- a/mm/umm_heap/umm_globals.c
+++ b/mm/umm_heap/umm_globals.c
@@ -32,7 +32,7 @@
* Public Data
****************************************************************************/
-#if defined(CONFIG_ARCH_ADDRENV) && defined(__KERNEL__)
+#if defined(CONFIG_ARCH_ADDRENV) && defined(CONFIG_BUILD_KERNEL)
/* In the kernel build, there a multiple user heaps; one for each task
* group. In this build configuration, the user heap structure lies
* in a reserved region at the beginning of the .bss/.data address