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:
parent
cf2879200b
commit
0f8bee9c07
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue