Skip to content

Commit e4aa991

Browse files
bjdooks-sifivepalmer-dabbelt
authored andcommitted
RISC-V: cpu_ops_spinwait.c should include head.h
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]>
1 parent da6d212 commit e4aa991

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/riscv/kernel/cpu_ops_spinwait.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#include <asm/sbi.h>
1212
#include <asm/smp.h>
1313

14+
#include "head.h"
15+
1416
const struct cpu_operations cpu_ops_spinwait;
1517
void *__cpu_spinwait_stack_pointer[NR_CPUS] __section(".data");
1618
void *__cpu_spinwait_task_pointer[NR_CPUS] __section(".data");

0 commit comments

Comments
 (0)