From: Atish Patra Date: Wed, 23 Mar 2022 17:17:26 +0000 (-0700) Subject: RISC-V: Declare per cpu boot data as static X-Git-Tag: v5.17.2~1034 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=bf0466f87aa2d22a42e45a4734a85c3e174b2ff8;p=users%2Fdwmw2%2Flinux.git RISC-V: Declare per cpu boot data as static commit f1de125766d6f377a4b5d5821bc12928f929a4eb upstream. The per cpu boot data is only used within the cpu_ops_sbi.c. It can be delcared as static. Fixes: 9a2451f18663 ("RISC-V: Avoid using per cpu array for ordered booting") Reported-by: kernel test robot Signed-off-by: Atish Patra Cc: stable@vger.kernel.org Signed-off-by: Palmer Dabbelt Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/riscv/kernel/cpu_ops_sbi.c b/arch/riscv/kernel/cpu_ops_sbi.c index dae29cbfe550b..7f2ad008274f3 100644 --- a/arch/riscv/kernel/cpu_ops_sbi.c +++ b/arch/riscv/kernel/cpu_ops_sbi.c @@ -21,7 +21,7 @@ const struct cpu_operations cpu_ops_sbi; * be invoked from multiple threads in parallel. Define a per cpu data * to handle that. */ -DEFINE_PER_CPU(struct sbi_hart_boot_data, boot_data); +static DEFINE_PER_CPU(struct sbi_hart_boot_data, boot_data); static int sbi_hsm_hart_start(unsigned long hartid, unsigned long saddr, unsigned long priv)