RISC-V: paravirt: steal_time should be static
authorAndrew Jones <ajones@ventanamicro.com>
Wed, 31 Jan 2024 12:05:13 +0000 (13:05 +0100)
committerAnup Patel <anup@brainfault.org>
Fri, 9 Feb 2024 06:23:08 +0000 (11:53 +0530)
steal_time is not used outside paravirt.c, make it static,
as sparse suggested.

Fixes: fdf68acccfc6 ("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>
arch/riscv/kernel/paravirt.c

index 8e114f5930cec6148b98f7f81abd72a798caf8e8..15c5d4048db590a1a1bd14b6630bcf1534feabfc 100644 (file)
@@ -41,7 +41,7 @@ static int __init parse_no_stealacc(char *arg)
 
 early_param("no-steal-acc", parse_no_stealacc);
 
-DEFINE_PER_CPU(struct sbi_sta_struct, steal_time) __aligned(64);
+static DEFINE_PER_CPU(struct sbi_sta_struct, steal_time) __aligned(64);
 
 static bool __init has_pv_steal_clock(void)
 {