Skip to content

Commit 9d87cf5

Browse files
RISC-V: Mark riscv_v_init() as __init
This trips up with Xtheadvector enabled, but as far as I can tell it's just been an issue since the original patchset. Fixes: 7ca7a7b ("riscv: Add sysctl to set the default vector rule for new processes") Reviewed-by: Charlie Jenkins <[email protected]> Tested-by: Charlie Jenkins <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 0eb5127 commit 9d87cf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/kernel/vector.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ static int __init riscv_v_sysctl_init(void)
309309
static int __init riscv_v_sysctl_init(void) { return 0; }
310310
#endif /* ! CONFIG_SYSCTL */
311311

312-
static int riscv_v_init(void)
312+
static int __init riscv_v_init(void)
313313
{
314314
return riscv_v_sysctl_init();
315315
}

0 commit comments

Comments
 (0)