RISC-V: hwprobe: Remove __init on probe_vendor_features()
authorEvan Green <evan@rivosinc.com>
Thu, 20 Apr 2023 19:49:34 +0000 (12:49 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 26 Apr 2023 04:58:42 +0000 (21:58 -0700)
commitbb3f89487fd936df7cc5165bae37ca2669056c5c
tree0e2434e119b6f337dd14785728071b490a20f8dd
parent310c33dc7a1278d80ba717b9964bd478d52681e0
RISC-V: hwprobe: Remove __init on probe_vendor_features()

probe_vendor_features() is now called from smp_callin(), which is not
__init code and runs during cpu hotplug events. Remove the
__init_or_module decoration from it and the functions it calls to avoid
walking into outer space.

Fixes: 62a31d6e38bd ("RISC-V: hwprobe: Support probing of misaligned access performance")
Signed-off-by: Evan Green <evan@rivosinc.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20230420194934.1871356-1-evan@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/errata/thead/errata.c
arch/riscv/include/asm/alternative.h
arch/riscv/kernel/alternative.c