linux-stable/arch/riscv
Sunil V L d8516953ce riscv: spinwait: Fix hartid variable type
[ Upstream commit c029e487e7 ]

The hartid variable is of type int but compared with
ULONG_MAX(INVALID_HARTID). This issue is fixed by changing
the hartid variable type to unsigned long.

Fixes: c78f94f35c ("RISC-V: Use __cpu_up_stack/task_pointer only for spinwait method")

Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20220527051743.2829940-3-sunilvl@ventanamicro.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-17 14:42:08 +02:00
..
boot riscv: dts: starfive: correct number of external interrupts 2022-08-17 14:40:10 +02:00
configs RISC-V: configs: Configs that had RPMSG_CHAR now get RPMSG_CTRL 2022-04-26 08:19:53 -07:00
errata riscv: errata: alternative: mark vendor_patch_func __initdata 2022-01-09 11:02:46 -08:00
include RISC-V: Declare cpu_ops_spinwait in <asm/cpu_ops.h> 2022-08-17 14:40:10 +02:00
kernel riscv: spinwait: Fix hartid variable type 2022-08-17 14:42:08 +02:00
kvm RISC-V: KVM: Fix SRCU deadlock caused by kvm_riscv_check_vcpu_requests() 2022-07-22 10:21:34 +02:00
lib riscv: lib: uaccess: fix CSR_STATUS SR_SUM bit 2022-08-17 14:40:09 +02:00
mm RISC-V: Add modules to virtual kernel memory layout dump 2022-08-17 14:40:11 +02:00
net riscv: bpf: Fix eBPF's exception tables 2022-01-19 10:50:02 -08:00
Kbuild kbuild: use more subdir- for visiting subdirectories while cleaning 2021-10-24 13:49:46 +09:00
Kconfig RISC-V CPU Idle Support 2022-03-30 16:17:54 -07:00
Kconfig.debug
Kconfig.erratas riscv: alternative only works on !XIP_KERNEL 2022-03-10 10:05:19 -08:00
Kconfig.socs RISC-V: cpuidle: fix Kconfig select for RISCV_SBI_CPUIDLE 2022-04-21 15:10:47 -07:00
Makefile riscv: add as-options for modules with assembly compontents 2022-07-29 17:27:55 +02:00