aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/include
diff options
context:
space:
mode:
authorGravatar Ben Dooks <ben.dooks@sifive.com> 2022-07-14 08:18:11 +0100
committerGravatar Palmer Dabbelt <palmer@rivosinc.com> 2022-08-11 13:06:47 -0700
commitda6d2128e56a50a0d497c8e41ca1d33d88bcc0aa (patch)
tree3810c7c174c254585b859ae853a468c036cb5030 /arch/riscv/include
parentriscv: dts: starfive: correct number of external interrupts (diff)
downloadlinux-da6d2128e56a50a0d497c8e41ca1d33d88bcc0aa.tar.gz
linux-da6d2128e56a50a0d497c8e41ca1d33d88bcc0aa.tar.bz2
linux-da6d2128e56a50a0d497c8e41ca1d33d88bcc0aa.zip
RISC-V: Declare cpu_ops_spinwait in <asm/cpu_ops.h>
The cpu_ops_spinwait is used in a couple of places in arch/riscv and is causing a sparse warning due to no declaration. Add this to <asm/cpu_ops.h> with the others to fix the following: arch/riscv/kernel/cpu_ops_spinwait.c:16:29: warning: symbol 'cpu_ops_spinwait' was not declared. Should it be static? Signed-off-by: Ben Dooks <ben.dooks@sifive.com> Link: https://lore.kernel.org/r/20220714071811.187491-1-ben.dooks@sifive.com [Palmer: Drop the extern from cpu_ops.c] Fixes: 2ffc48fc7071 ("RISC-V: Move spinwait booting method to its own config") Cc: stable@vger.kernel.org Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/include')
-rw-r--r--arch/riscv/include/asm/cpu_ops.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/cpu_ops.h b/arch/riscv/include/asm/cpu_ops.h
index 134590f1b843..aa128466c4d4 100644
--- a/arch/riscv/include/asm/cpu_ops.h
+++ b/arch/riscv/include/asm/cpu_ops.h
@@ -38,6 +38,7 @@ struct cpu_operations {
#endif
};
+extern const struct cpu_operations cpu_ops_spinwait;
extern const struct cpu_operations *cpu_ops[NR_CPUS];
void __init cpu_set_ops(int cpu);