[MIPS] Transform old-style macros to newer "__noreturn"

Convert old/obsolete NORET_TYPE and ATTRIB_NORET macros to use the
newer standard of "__noreturn" as defined in compiler-gcc.h.

Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
Robert P. J. Day
2007-05-25 14:32:28 -04:00
committed by Ralf Baechle
parent 8f8771a057
commit b3f6df9f21
7 changed files with 16 additions and 16 deletions

View File

@@ -9,26 +9,26 @@
#include <asm/addrspace.h>
typedef void ATTRIB_NORET (* noret_func_t)(void);
typedef void __noreturn (* noret_func_t)(void);
static inline void ATTRIB_NORET back_to_prom(void)
static inline void __noreturn back_to_prom(void)
{
noret_func_t func = (void *)CKSEG1ADDR(0x1fc00000);
func();
}
void ATTRIB_NORET dec_machine_restart(char *command)
void __noreturn dec_machine_restart(char *command)
{
back_to_prom();
}
void ATTRIB_NORET dec_machine_halt(void)
void __noreturn dec_machine_halt(void)
{
back_to_prom();
}
void ATTRIB_NORET dec_machine_power_off(void)
void __noreturn dec_machine_power_off(void)
{
/* DECstations don't have a software power switch */
back_to_prom();