mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
init: Mark [arch_call_]rest_init() __noreturn
In preparation for improving objtool's handling of weak noreturn functions, mark start_kernel(), arch_call_rest_init(), and rest_init() __noreturn. Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Link: https://lore.kernel.org/r/7194ed8a989a85b98d92e62df660f4a90435a723.1681342859.git.jpoimboe@kernel.org
This commit is contained in:
parent
5743654f5e
commit
9ea7e6b62c
4 changed files with 7 additions and 5 deletions
|
@ -9,7 +9,7 @@
|
|||
up something else. */
|
||||
|
||||
extern asmlinkage void __init start_kernel(void);
|
||||
extern void __init arch_call_rest_init(void);
|
||||
extern void __ref rest_init(void);
|
||||
extern void __init __noreturn arch_call_rest_init(void);
|
||||
extern void __ref __noreturn rest_init(void);
|
||||
|
||||
#endif /* _LINUX_START_KERNEL_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue