Skip to content

Commit 6eb7a64

Browse files
evangreenpalmer-dabbelt
authored andcommitted
RISC-V: Remove __init on unaligned_emulation_finish()
This function shouldn't be __init, since it's called during hotplug. The warning says it well enough: WARNING: modpost: vmlinux: section mismatch in reference: check_unaligned_access_all_cpus+0x13a (section: .text) -> unaligned_emulation_finish (section: .init.text) Signed-off-by: Evan Green <evan@rivosinc.com> Fixes: 71c54b3 ("riscv: report misaligned accesses emulation to hwprobe") Link: https://lore.kernel.org/r/20231106231105.3141413-1-evan@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent d3d2cf1 commit 6eb7a64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/riscv/kernel/traps_misaligned.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ bool check_unaligned_access_emulated(int cpu)
625625
return misaligned_emu_detected;
626626
}
627627

628-
void __init unaligned_emulation_finish(void)
628+
void unaligned_emulation_finish(void)
629629
{
630630
int cpu;
631631

0 commit comments

Comments
 (0)