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
@@ -383,7 +383,7 @@ void __init_refok note_bootable_part(dev_t dev, int part, int goodness)
|
||||
}
|
||||
|
||||
#ifdef CONFIG_ADB_CUDA
|
||||
static void cuda_restart(void)
|
||||
static void __noreturn cuda_restart(void)
|
||||
{
|
||||
struct adb_request req;
|
||||
|
||||
@@ -392,7 +392,7 @@ static void cuda_restart(void)
|
||||
cuda_poll();
|
||||
}
|
||||
|
||||
static void cuda_shutdown(void)
|
||||
static void __noreturn cuda_shutdown(void)
|
||||
{
|
||||
struct adb_request req;
|
||||
|
||||
@@ -416,7 +416,7 @@ static void cuda_shutdown(void)
|
||||
#define smu_shutdown()
|
||||
#endif
|
||||
|
||||
static void pmac_restart(char *cmd)
|
||||
static void __noreturn pmac_restart(char *cmd)
|
||||
{
|
||||
switch (sys_ctrler) {
|
||||
case SYS_CTRLER_CUDA:
|
||||
@@ -430,9 +430,10 @@ static void pmac_restart(char *cmd)
|
||||
break;
|
||||
default: ;
|
||||
}
|
||||
while (1) ;
|
||||
}
|
||||
|
||||
static void pmac_power_off(void)
|
||||
static void __noreturn pmac_power_off(void)
|
||||
{
|
||||
switch (sys_ctrler) {
|
||||
case SYS_CTRLER_CUDA:
|
||||
@@ -446,9 +447,10 @@ static void pmac_power_off(void)
|
||||
break;
|
||||
default: ;
|
||||
}
|
||||
while (1) ;
|
||||
}
|
||||
|
||||
static void
|
||||
static void __noreturn
|
||||
pmac_halt(void)
|
||||
{
|
||||
pmac_power_off();
|
||||
|
Reference in New Issue
Block a user