Unverified Commit f1de1257 authored by Atish Patra's avatar Atish Patra Committed by Palmer Dabbelt
Browse files

RISC-V: Declare per cpu boot data as static



The per cpu boot data is only used within the cpu_ops_sbi.c. It can
be delcared as static.

Fixes: 9a2451f1 ("RISC-V: Avoid using per cpu array for ordered booting")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarAtish Patra <atishp@rivosinc.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
parent 8a122a66
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)