summaryrefslogtreecommitdiffstats
path: root/arch/riscv/kernel/cpu_ops_sbi.c
diff options
context:
space:
mode:
authorAtish Patra <atishp@rivosinc.com>2022-03-23 18:17:26 +0100
committerPalmer Dabbelt <palmer@rivosinc.com>2022-03-31 21:44:32 +0200
commitf1de125766d6f377a4b5d5821bc12928f929a4eb (patch)
tree203050c8e9a92a31c3aa4f0f487dac194add4d4d /arch/riscv/kernel/cpu_ops_sbi.c
parentRISC-V: Fix a comment typo in riscv_of_parent_hartid() (diff)
downloadlinux-f1de125766d6f377a4b5d5821bc12928f929a4eb.tar.xz
linux-f1de125766d6f377a4b5d5821bc12928f929a4eb.zip
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: 9a2451f18663 ("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>
Diffstat (limited to 'arch/riscv/kernel/cpu_ops_sbi.c')
-rw-r--r--arch/riscv/kernel/cpu_ops_sbi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/kernel/cpu_ops_sbi.c b/arch/riscv/kernel/cpu_ops_sbi.c
index 2e16f6732cdf..4f5a6f84e2a4 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)