mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:44:45 +01:00
arm/cpu: Add unreachable() to arch_cpu_idle_dead()
arch_cpu_idle_dead() doesn't return. Make that visible to the compiler with an unreachable() code annotation. Link: https://lkml.kernel.org/r/20230216183851.s5bnvniomq44rytu@treble Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
This commit is contained in:
parent
550db6795e
commit
b40c7d6d31
1 changed files with 2 additions and 0 deletions
|
|
@ -382,6 +382,8 @@ void arch_cpu_idle_dead(void)
|
|||
: "r" (task_stack_page(current) + THREAD_SIZE - 8),
|
||||
"r" (current)
|
||||
: "r0");
|
||||
|
||||
unreachable();
|
||||
}
|
||||
#endif /* CONFIG_HOTPLUG_CPU */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue