powerpc: Make ppc_md.{halt, restart} __noreturn
powernv marks it's halt and restart calls as __noreturn. However, ppc_md does not have this annotation. Add the annotation to ppc_md, and then to every halt/restart function that is missing it. Additionally, I have verified that all of these functions do not return. Occasionally I have added a spin loop to be sure. Signed-off-by: Daniel Axtens <dja@axtens.net> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committed by
Michael Ellerman

parent
62c2c5cf38
commit
95ec77c06e
@@ -685,7 +685,7 @@ int rtas_set_indicator_fast(int indicator, int index, int new_value)
|
||||
return rc;
|
||||
}
|
||||
|
||||
void rtas_restart(char *cmd)
|
||||
void __noreturn rtas_restart(char *cmd)
|
||||
{
|
||||
if (rtas_flash_term_hook)
|
||||
rtas_flash_term_hook(SYS_RESTART);
|
||||
@@ -704,7 +704,7 @@ void rtas_power_off(void)
|
||||
for (;;);
|
||||
}
|
||||
|
||||
void rtas_halt(void)
|
||||
void __noreturn rtas_halt(void)
|
||||
{
|
||||
if (rtas_flash_term_hook)
|
||||
rtas_flash_term_hook(SYS_HALT);
|
||||
|
Reference in New Issue
Block a user