Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

init: remove obsolete arch_call_rest_init() wrapper

Since commit 3570ee046c46b5dc ("s390/smp: keep the original lowcore for
CPU 0"), there is no longer any architecture that needs to override
arch_call_rest_init().

Remove the weak wrapper around rest_init(), call rest_init() directly, and
make rest_init() static.

Link: https://lkml.kernel.org/r/aa10868bfb176eef4abb8bb4a710b85330792694.1706106183.git.geert@linux-m68k.org
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Ilya Leoshkevich <iii@linux.ibm.com>
Cc: Josh Poimboeuf <jpoimboe@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Geert Uytterhoeven and committed by
Andrew Morton
ac4db926 f16ff3b6

+2 -10
-2
include/linux/start_kernel.h
··· 9 9 up something else. */ 10 10 11 11 extern asmlinkage void __init __noreturn start_kernel(void); 12 - extern void __init __noreturn arch_call_rest_init(void); 13 - extern void __ref __noreturn rest_init(void); 14 12 15 13 #endif /* _LINUX_START_KERNEL_H */
+2 -7
init/main.c
··· 681 681 682 682 static __initdata DECLARE_COMPLETION(kthreadd_done); 683 683 684 - noinline void __ref __noreturn rest_init(void) 684 + static noinline void __ref __noreturn rest_init(void) 685 685 { 686 686 struct task_struct *tsk; 687 687 int pid; ··· 821 821 } 822 822 early_param("randomize_kstack_offset", early_randomize_kstack_offset); 823 823 #endif 824 - 825 - void __init __weak __noreturn arch_call_rest_init(void) 826 - { 827 - rest_init(); 828 - } 829 824 830 825 static void __init print_unknown_bootoptions(void) 831 826 { ··· 1064 1069 kcsan_init(); 1065 1070 1066 1071 /* Do the rest non-__init'ed, we're now alive */ 1067 - arch_call_rest_init(); 1072 + rest_init(); 1068 1073 1069 1074 /* 1070 1075 * Avoid stack canaries in callers of boot_init_stack_canary for gcc-10
-1
tools/objtool/noreturns.h
··· 12 12 NORETURN(__stack_chk_fail) 13 13 NORETURN(__tdx_hypercall_failed) 14 14 NORETURN(__ubsan_handle_builtin_unreachable) 15 - NORETURN(arch_call_rest_init) 16 15 NORETURN(arch_cpu_idle_dead) 17 16 NORETURN(bch2_trans_in_restart_error) 18 17 NORETURN(bch2_trans_restart_error)