Skip to content

Commit fcc4807

Browse files
glevandmpe
authored andcommitted
powerpc/ps3: Fix sys-manager-core sparse warnings
Fixes warnings like these: drivers/ps3/sys-manager-core.c: error: symbol 'ps3_sys_manager_power_off' redeclared with different type Signed-off-by: Geoff Levand <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent 6baa5ec commit fcc4807

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/ps3/sys-manager-core.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,23 @@ void ps3_sys_manager_register_ops(const struct ps3_sys_manager_ops *ops)
4747
}
4848
EXPORT_SYMBOL_GPL(ps3_sys_manager_register_ops);
4949

50-
void ps3_sys_manager_power_off(void)
50+
void __noreturn ps3_sys_manager_power_off(void)
5151
{
5252
if (ps3_sys_manager_ops.power_off)
5353
ps3_sys_manager_ops.power_off(ps3_sys_manager_ops.dev);
5454

5555
ps3_sys_manager_halt();
5656
}
5757

58-
void ps3_sys_manager_restart(void)
58+
void __noreturn ps3_sys_manager_restart(void)
5959
{
6060
if (ps3_sys_manager_ops.restart)
6161
ps3_sys_manager_ops.restart(ps3_sys_manager_ops.dev);
6262

6363
ps3_sys_manager_halt();
6464
}
6565

66-
void ps3_sys_manager_halt(void)
66+
void __noreturn ps3_sys_manager_halt(void)
6767
{
6868
pr_emerg("System Halted, OK to turn off power\n");
6969
local_irq_disable();

0 commit comments

Comments
 (0)