[PATCH 1/3] RISC-V: paravirt: steal_time should be static

Atish Patra atishp at atishpatra.org
Wed Jan 31 11:44:49 PST 2024


On Wed, Jan 31, 2024 at 4:05 AM Andrew Jones <ajones at ventanamicro.com> wrote:
>
> 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 at ventanamicro.com>
> ---
>  arch/riscv/kernel/paravirt.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/riscv/kernel/paravirt.c b/arch/riscv/kernel/paravirt.c
> index 8e114f5930ce..15c5d4048db5 100644
> --- a/arch/riscv/kernel/paravirt.c
> +++ b/arch/riscv/kernel/paravirt.c
> @@ -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);
>


Reviewed-by: Atish Patra <atishp at rivosinc.com>

>  static bool __init has_pv_steal_clock(void)
>  {
> --
> 2.43.0
>


-- 
Regards,
Atish



More information about the linux-riscv mailing list