From 0c6474cdf09759f41c2ecd4fa0672a4783f14c58 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 11 Dec 2013 16:49:48 -0600 Subject: [PATCH] Fix some kernel-mode compilation problems --- mm/mm_memalign.c | 4 ++-- syscall/syscall_stublookup.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mm/mm_memalign.c b/mm/mm_memalign.c index aa23cc9d60..03fccc7fd4 100644 --- a/mm/mm_memalign.c +++ b/mm/mm_memalign.c @@ -83,7 +83,7 @@ FAR void *mm_memalign(FAR struct mm_heap_s *heap, size_t alignment, if (alignment <= MM_MIN_CHUNK) { - return malloc(size); + return mm_malloc(heap, size); } /* Adjust the size to account for (1) the size of the allocated node, (2) @@ -103,7 +103,7 @@ FAR void *mm_memalign(FAR struct mm_heap_s *heap, size_t alignment, /* Then malloc that size */ - rawchunk = (size_t)malloc(allocsize); + rawchunk = (size_t)mm_malloc(heap, allocsize); if (rawchunk == 0) { return NULL; diff --git a/syscall/syscall_stublookup.c b/syscall/syscall_stublookup.c index 436637c9eb..65d7a35038 100644 --- a/syscall/syscall_stublookup.c +++ b/syscall/syscall_stublookup.c @@ -38,6 +38,8 @@ ****************************************************************************/ #include + +#include #include /* The content of this file is only meaningful during the kernel phase of