linux/arch/riscv
Sunil V L 951183192a 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>
History 2022-08-17 15:15:55 +02:00
..
boot riscv: dts: starfive: correct number of external interrupts 2022-08-17 15:13:49 +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: don't warn for sifive erratas in modules 2022-07-07 23:09:16 -07:00
include RISC-V: Declare cpu_ops_spinwait in <asm/cpu_ops.h> 2022-08-17 15:13:49 +02:00
kernel riscv: spinwait: Fix hartid variable type 2022-08-17 15:15:55 +02:00
kvm RISC-V: KVM: Fix SRCU deadlock caused by kvm_riscv_check_vcpu_requests() 2022-07-11 09:36:32 +05:30
lib riscv: lib: uaccess: fix CSR_STATUS SR_SUM bit 2022-08-17 15:13:49 +02:00
mm RISC-V: Add modules to virtual kernel memory layout dump 2022-08-17 15:13:50 +02:00
net riscv, bpf: Implement more atomic operations for RV64 2022-04-11 16:54:54 +02:00
purgatory RISC-V: Add purgatory 2022-05-19 12:18:59 -07:00
Kbuild riscv: move errata/ and kvm/ builds to arch/riscv/Kbuild 2022-06-01 22:26:32 -07:00
Kconfig riscv/mm: fix build error while PAGE_TABLE_CHECK enabled without MMU 2022-07-03 15:42:32 -07:00
Kconfig.debug RISC-V: Remove EARLY_PRINTK support 2018-12-17 10:23:46 -08:00
Kconfig.erratas riscv: fix dependency for t-head errata 2022-06-16 15:42:55 -07:00
Kconfig.socs RISC-V Patches for the 5.19 Merge Window, Part 1 2022-05-31 14:10:54 -07:00
Makefile riscv: compat: vdso: Fix vdso_install target 2022-07-22 12:23:14 -07:00