diff --git a/arch/arc/core/thread.c b/arch/arc/core/thread.c index 1e7b2df5f7a..39f8e136a75 100644 --- a/arch/arc/core/thread.c +++ b/arch/arc/core/thread.c @@ -87,7 +87,7 @@ void z_new_thread(struct k_thread *thread, k_thread_stack_t *stack, #endif stackEnd = pStackMem + stackAdjSize; -#if CONFIG_STACK_POINTER_RANDOM +#ifdef CONFIG_STACK_POINTER_RANDOM offset = stackAdjSize - stackSize; #endif