Skip to content

Commit f1de125

Browse files
atishp04palmer-dabbelt
authored andcommitted
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: 9a2451f ("RISC-V: Avoid using per cpu array for ordered booting") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Atish Patra <atishp@rivosinc.com> Cc: stable@vger.kernel.org Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent 8a122a6 commit f1de125

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/riscv/kernel/cpu_ops_sbi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const struct cpu_operations cpu_ops_sbi;
2121
* be invoked from multiple threads in parallel. Define a per cpu data
2222
* to handle that.
2323
*/
24-
DEFINE_PER_CPU(struct sbi_hart_boot_data, boot_data);
24+
static DEFINE_PER_CPU(struct sbi_hart_boot_data, boot_data);
2525

2626
static int sbi_hsm_hart_start(unsigned long hartid, unsigned long saddr,
2727
unsigned long priv)

0 commit comments

Comments
 (0)