[PATCH 5/9] um: Mark install_fatal_handler as __init

Tiwei Bie tiwei.btw at antgroup.com
Thu Nov 28 00:31:33 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 cf9697aa17f3..3f394f25e059 100644
--- a/arch/um/os-Linux/main.c
+++ b/arch/um/os-Linux/main.c
@@ -48,7 +48,7 @@ static void last_ditch_exit(int sig)
 	exit(1);
 }
 
-static void install_fatal_handler(int sig)
+static void __init install_fatal_handler(int sig)
 {
 	struct sigaction action;
 
-- 
2.34.1




More information about the linux-um mailing list