From d6912d0b00d91e4c29765a643ae970971f843567 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 16 Feb 2016 20:11:25 -0600 Subject: [PATCH] Fix some bad conditional compilation and other typos in last commit --- sched/sched/sched_garbage.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sched/sched/sched_garbage.c b/sched/sched/sched_garbage.c index ac6ef387da..1fd3fbf050 100644 --- a/sched/sched/sched_garbage.c +++ b/sched/sched/sched_garbage.c @@ -118,11 +118,11 @@ static inline void sched_kucleanup(void) * ****************************************************************************/ -#if (defined(CONFIG_BUILD_PROTECTED) || defined(CONFIG_BUILD_KERNEL)) && \ - defined(CONFIG_MM_KERNEL_HEAP) +#ifndef CONFIG_BUILD_KERNEL static inline bool sched_have_kugarbage(void) { return (g_delayed_kufree.head != NULL); +} #else # define sched_have_kugarbage() false #endif @@ -197,6 +197,7 @@ static inline void sched_kcleanup(void) static inline bool sched_have_kgarbage(void) { return (g_delayed_kfree.head != NULL); +} #else # define sched_have_kgarbage() false #endif