[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:
committed by
Ralf Baechle
parent
8f8771a057
commit
b3f6df9f21
@@ -46,7 +46,7 @@
|
||||
* power and have a low exit latency (ie sit in a loop waiting for somebody to
|
||||
* say that they'd like to reschedule)
|
||||
*/
|
||||
ATTRIB_NORET void cpu_idle(void)
|
||||
void __noreturn cpu_idle(void)
|
||||
{
|
||||
/* endless idle loop with no priority at all */
|
||||
while (1) {
|
||||
@@ -213,7 +213,7 @@ int dump_task_fpu (struct task_struct *t, elf_fpregset_t *fpr)
|
||||
/*
|
||||
* Create a kernel thread
|
||||
*/
|
||||
static ATTRIB_NORET void kernel_thread_helper(void *arg, int (*fn)(void *))
|
||||
static void __noreturn kernel_thread_helper(void *arg, int (*fn)(void *))
|
||||
{
|
||||
do_exit(fn(arg));
|
||||
}
|
||||
|
@@ -52,7 +52,7 @@ EXPORT_SYMBOL(phys_cpu_present_map);
|
||||
EXPORT_SYMBOL(cpu_online_map);
|
||||
|
||||
extern void __init calibrate_delay(void);
|
||||
extern ATTRIB_NORET void cpu_idle(void);
|
||||
extern void cpu_idle(void);
|
||||
|
||||
/*
|
||||
* First C code run on the secondary CPUs after being started up by
|
||||
|
@@ -311,7 +311,7 @@ void show_registers(struct pt_regs *regs)
|
||||
|
||||
static DEFINE_SPINLOCK(die_lock);
|
||||
|
||||
NORET_TYPE void ATTRIB_NORET die(const char * str, struct pt_regs * regs)
|
||||
void __noreturn die(const char * str, struct pt_regs * regs)
|
||||
{
|
||||
static int die_counter;
|
||||
#ifdef CONFIG_MIPS_MT_SMTC
|
||||
|
Reference in New Issue
Block a user