aboutsummaryrefslogtreecommitdiffstats
path: root/arch/riscv
diff options
context:
space:
mode:
authorPaul Walmsley <pjw@kernel.org>2025-10-14 17:25:26 -0600
committerPaul Walmsley <pjw@kernel.org>2025-10-17 22:10:01 -0600
commit492c513ec6de1ce51b5f033bd6c708e4b8e46ae4 (patch)
tree8ebebbb04523eddd672d42b81acd3d78657c9bab /arch/riscv
parentd2721bb165b3ee00dd23525885381af07fec852a (diff)
downloadlinux-492c513ec6de1ce51b5f033bd6c708e4b8e46ae4.tar.gz
riscv: add a forward declaration for cpuinfo_op
Add a forward declaration for cpuinfo_op to resolve a sparse warning. Link: https://lore.kernel.org/r/b831f349-5d0c-f7ac-8362-acb20bc6221a@kernel.org Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'arch/riscv')
-rw-r--r--arch/riscv/include/asm/cpufeature.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/cpufeature.h b/arch/riscv/include/asm/cpufeature.h
index fbd0e4306c9347..62837fa981e8ea 100644
--- a/arch/riscv/include/asm/cpufeature.h
+++ b/arch/riscv/include/asm/cpufeature.h
@@ -31,6 +31,8 @@ struct riscv_isainfo {
DECLARE_PER_CPU(struct riscv_cpuinfo, riscv_cpuinfo);
+extern const struct seq_operations cpuinfo_op;
+
/* Per-cpu ISA extensions. */
extern struct riscv_isainfo hart_isa[NR_CPUS];