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/[email protected] Signed-off-by: Paul Walmsley <[email protected]>
1 parent d2721bb commit 492c513

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)