]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
s390/early: Add __init to __do_early_pgm_check()
authorHeiko Carstens <hca@linux.ibm.com>
Thu, 1 Aug 2024 15:16:11 +0000 (17:16 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 22 Aug 2024 17:28:11 +0000 (19:28 +0200)
__do_early_pgm_check() is a function which is only needed during early
setup code. Mark it __init in order to save a few bytes.

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Acked-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/early.c

index 0242fa78c918967d7e76ab489c5ea0db4f9b63cd..25ce02be77a373ae998236e1f854aa6b9b5271b6 100644 (file)
@@ -175,7 +175,7 @@ static __init void setup_topology(void)
        topology_max_mnest = max_mnest;
 }
 
-void __do_early_pgm_check(struct pt_regs *regs)
+void __init __do_early_pgm_check(struct pt_regs *regs)
 {
        struct lowcore *lc = get_lowcore();
        unsigned long ip;