[PATCH 4/9] um: Mark set_stklim as __init

Tiwei Bie tiwei.btw at antgroup.com
Thu Nov 28 00:31:32 PST 2024


It's only invoked during boot from main().

Signed-off-by: Tiwei Bie <tiwei.btw at antgroup.com>
---
 arch/um/os-Linux/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/um/os-Linux/main.c b/arch/um/os-Linux/main.c
index 0afcdeb8995b..cf9697aa17f3 100644
--- a/arch/um/os-Linux/main.c
+++ b/arch/um/os-Linux/main.c
@@ -25,7 +25,7 @@
 
 long elf_aux_hwcap;
 
-static void set_stklim(void)
+static void __init set_stklim(void)
 {
 	struct rlimit lim;
 
-- 
2.34.1




More information about the linux-um mailing list