kernel/smp: Warning cleanup

When CONFIG_SMP is enabled but CONFIG_MP_NUM_CPUS is 1 (which is a
legal configuration, though a weird one) this static function ends up
being defined but unused, producing a compiler warning.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
Andy Ross 2019-02-14 15:36:46 -08:00 committed by Anas Nashif
commit 0f8bee9c07

View file

@ -65,7 +65,7 @@ extern k_thread_stack_t _interrupt_stack1[];
extern k_thread_stack_t _interrupt_stack2[];
extern k_thread_stack_t _interrupt_stack3[];
#ifdef CONFIG_SMP
#if defined(CONFIG_SMP) && CONFIG_MP_NUM_CPUS > 1
static void smp_init_top(int key, void *arg)
{
atomic_t *start_flag = arg;