Skip to content

Commit

Permalink
RISC-V: cpu_ops_spinwait.c should include head.h
Browse files Browse the repository at this point in the history
commit e4aa991 upstream.

Running sparse shows cpu_ops_spinwait.c is missing two definitions
found in head.h, so include it to stop the following warnings:

arch/riscv/kernel/cpu_ops_spinwait.c:15:6: warning: symbol '__cpu_spinwait_stack_pointer' was not declared. Should it be static?
arch/riscv/kernel/cpu_ops_spinwait.c:16:6: warning: symbol '__cpu_spinwait_task_pointer' was not declared. Should it be static?

Signed-off-by: Ben Dooks <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Fixes: c78f94f ("RISC-V: Use __cpu_up_stack/task_pointer only for spinwait method")
Cc: [email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
bjdooks-sifive authored and Sasha Levin committed Aug 17, 2022
1 parent 0ac287b commit 6ad2567
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/riscv/kernel/cpu_ops_spinwait.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#include <asm/sbi.h>
#include <asm/smp.h>

#include "head.h"

const struct cpu_operations cpu_ops_spinwait;
void *__cpu_spinwait_stack_pointer[NR_CPUS] __section(".data");
void *__cpu_spinwait_task_pointer[NR_CPUS] __section(".data");
Expand Down

0 comments on commit 6ad2567

Please sign in to comment.