riscv: Correct type casting in module loading
authorCharlie Jenkins <charlie@rivosinc.com>
Mon, 27 Nov 2023 22:05:00 +0000 (14:05 -0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Mon, 4 Dec 2023 19:02:38 +0000 (11:02 -0800)
commit4a92a87950c4f86bc372ee3b1da4ba9d092252a9
tree9d684ce0886ec3eb67e4011a904a701c542376ae
parentd8792a5734b0f3e58b898c2e2f910bfac48e9ee3
riscv: Correct type casting in module loading

Use __le16 with le16_to_cpu.

Fixes: 8fd6c5142395 ("riscv: Add remaining module relocations")
Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
Tested-by: Samuel Holland <samuel.holland@sifive.com>
Tested-by: Björn Töpel <bjorn@rivosinc.com>
Link: https://lore.kernel.org/r/20231127-module_linking_freeing-v4-2-a2ca1d7027d0@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/module.c