Skip to content

Commit 492c513

Browse files
author
Paul Walmsley
committed
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>
1 parent d2721bb commit 492c513

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

arch/riscv/include/asm/cpufeature.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ struct riscv_isainfo {
3131

3232
DECLARE_PER_CPU(struct riscv_cpuinfo, riscv_cpuinfo);
3333

34+
extern const struct seq_operations cpuinfo_op;
35+
3436
/* Per-cpu ISA extensions. */
3537
extern struct riscv_isainfo hart_isa[NR_CPUS];
3638

0 commit comments

Comments
 (0)