Skip to content

Commit 17c8e9a

Browse files
jones-drewavpatel
authored andcommitted
RISC-V: paravirt: steal_time should be static
steal_time is not used outside paravirt.c, make it static, as sparse suggested. Fixes: fdf68ac ("RISC-V: paravirt: Implement steal-time support") Signed-off-by: Andrew Jones <ajones@ventanamicro.com> Reviewed-by: Atish Patra <atishp@rivosinc.com> Signed-off-by: Anup Patel <anup@brainfault.org>
1 parent 54be6c6 commit 17c8e9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/kernel/paravirt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static int __init parse_no_stealacc(char *arg)
4141

4242
early_param("no-steal-acc", parse_no_stealacc);
4343

44-
DEFINE_PER_CPU(struct sbi_sta_struct, steal_time) __aligned(64);
44+
static DEFINE_PER_CPU(struct sbi_sta_struct, steal_time) __aligned(64);
4545

4646
static bool __init has_pv_steal_clock(void)
4747
{

0 commit comments

Comments
 (0)