]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
um: Mark setup_env_path as __init
authorTiwei Bie <tiwei.btw@antgroup.com>
Thu, 28 Nov 2024 08:31:34 +0000 (16:31 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 10 Jan 2025 12:49:57 +0000 (13:49 +0100)
It's only invoked during boot from main().

Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20241128083137.2219830-7-tiwei.btw@antgroup.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/os-Linux/main.c

index 3f394f25e059226b4e52371345e7c030a425cf6f..3f0be24b3633b84220d8b10439790e95ea99dece 100644 (file)
@@ -73,7 +73,7 @@ static void __init install_fatal_handler(int sig)
 
 #define UML_LIB_PATH   ":" OS_LIB_PATH "/uml"
 
-static void setup_env_path(void)
+static void __init setup_env_path(void)
 {
        char *new_path = NULL;
        char *old_path = NULL;