diff options
author | Robert P. J. Day <rpjday@mindspring.com> | 2007-05-25 14:32:28 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-07-10 12:32:56 -0400 |
commit | b3f6df9f21c6efc4641613188204aa0742bc9e22 (patch) | |
tree | 377d574d3757c58852a106dae7b3454db300205f /arch/mips/sibyte | |
parent | 8f8771a057bff0d3911459d0bdadf03ec1dd3c89 (diff) |
[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>
Diffstat (limited to 'arch/mips/sibyte')
-rw-r--r-- | arch/mips/sibyte/cfe/setup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/sibyte/cfe/setup.c b/arch/mips/sibyte/cfe/setup.c index ae4a92c3e529..51898dd1304a 100644 --- a/arch/mips/sibyte/cfe/setup.c +++ b/arch/mips/sibyte/cfe/setup.c | |||
@@ -62,7 +62,7 @@ extern unsigned long initrd_start, initrd_end; | |||
62 | extern int kgdb_port; | 62 | extern int kgdb_port; |
63 | #endif | 63 | #endif |
64 | 64 | ||
65 | static void ATTRIB_NORET cfe_linux_exit(void *arg) | 65 | static void __noreturn cfe_linux_exit(void *arg) |
66 | { | 66 | { |
67 | int warm = *(int *)arg; | 67 | int warm = *(int *)arg; |
68 | 68 | ||
@@ -83,14 +83,14 @@ static void ATTRIB_NORET cfe_linux_exit(void *arg) | |||
83 | while (1); | 83 | while (1); |
84 | } | 84 | } |
85 | 85 | ||
86 | static void ATTRIB_NORET cfe_linux_restart(char *command) | 86 | static void __noreturn cfe_linux_restart(char *command) |
87 | { | 87 | { |
88 | static const int zero; | 88 | static const int zero; |
89 | 89 | ||
90 | cfe_linux_exit((void *)&zero); | 90 | cfe_linux_exit((void *)&zero); |
91 | } | 91 | } |
92 | 92 | ||
93 | static void ATTRIB_NORET cfe_linux_halt(void) | 93 | static void __noreturn cfe_linux_halt(void) |
94 | { | 94 | { |
95 | static const int one = 1; | 95 | static const int one = 1; |
96 | 96 | ||