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

父節點
62c2c5cf38
當前提交
95ec77c06e
@@ -193,7 +193,7 @@ void holly_show_cpuinfo(struct seq_file *m)
|
||||
seq_printf(m, "machine\t\t: PPC750 GX/CL\n");
|
||||
}
|
||||
|
||||
void holly_restart(char *cmd)
|
||||
void __noreturn holly_restart(char *cmd)
|
||||
{
|
||||
__be32 __iomem *ocn_bar1 = NULL;
|
||||
unsigned long bar;
|
||||
|
Reference in New Issue
Block a user