Skip to contentSkip to conversation

RISC-V: Mark riscv_v_init() as __init

PATCH Applied Palmer Dabbelt 3 participants 3 messages Jan 15, 2025 – Jan 30, 2025 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 7ca7a7b9b635 ("riscv: Add sysctl to set the default vector rule for new processes")
---
 arch/riscv/kernel/vector.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/kernel/vector.c +1 -1
index 61ded78fcaec..aba5805119c3 100644
@@ -319,7 +319,7 @@ static int __init riscv_v_sysctl_init(void)
 static int __init riscv_v_sysctl_init(void) { return 0; }
 #endif /* ! CONFIG_SYSCTL */
 
-static int riscv_v_init(void)
+static int __init riscv_v_init(void)
 {
 	return riscv_v_sysctl_init();
 }
Signature · 7 lines
2.45.2


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Reviewed-by Tested-by on v1 1/1
#1 lore raw
Quoted 5 lines · Palmer Dabbelt

This trips up with Xtheadvector enabled, but as far as I can tell it's just been an issue since the original patchset.

Fixes 7ca7a7b9b635 ("riscv: Add sysctl to set the default vector rule for new processes")
Quoted 20 lines
---
 arch/riscv/kernel/vector.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/kernel/vector.c +1 -1
index 61ded78fcaec..aba5805119c3 100644
@@ -319,7 +319,7 @@ static int __init riscv_v_sysctl_init(void)
 static int __init riscv_v_sysctl_init(void) { return 0; }
 #endif /* ! CONFIG_SYSCTL */
 
-static int riscv_v_init(void)
+static int __init riscv_v_init(void)
 {
 	return riscv_v_sysctl_init();
 }
Signature · 1 line
2.45.2

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

#2 lore raw
In reply to Palmer Dabbelt
This patch was applied to riscv/linux.git (for-next) by Palmer Dabbelt <[email protected]>:

Hello:

This patch was applied to riscv/linux.git (for-next) by Palmer Dabbelt <[email protected]>:

Quoted 8 lines · On Wed, 15 Jan 2025 10:02:51 -0800 you wrote:

This trips up with Xtheadvector enabled, but as far as I can tell it's just been an issue since the original patchset.

Fixes 7ca7a7b9b635 ("riscv: Add sysctl to set the default vector rule for new processes")
---
 arch/riscv/kernel/vector.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
- RISC-V: Mark riscv_v_init() as __init

    https://git.kernel.org/riscv/c/9d87cf525fd2

You are awesome, thank you!

Signature · 9 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv