diff options
author | Joe Perches <joe@perches.com> | 2012-01-12 20:17:17 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-12 23:13:03 -0500 |
commit | 9402c95f34a66e81eba473a2f7267bbae5a1dee2 (patch) | |
tree | c46628e702d625a737fedbd9de88138a94c93d1f /arch | |
parent | 80bf007f20b16272f210e0803f739f5606cff59d (diff) |
treewide: remove useless NORET_TYPE macro and uses
It's a very old and now unused prototype marking so just delete it.
Neaten panic pointer argument style to keep checkpatch quiet.
Signed-off-by: Joe Perches <joe@perches.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Haavard Skinnemoen <hskinnemoen@gmail.com>
Cc: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/avr32/include/asm/system.h | 2 | ||||
-rw-r--r-- | arch/avr32/kernel/traps.c | 2 | ||||
-rw-r--r-- | arch/ia64/kernel/machine_kexec.c | 2 | ||||
-rw-r--r-- | arch/m68k/amiga/config.c | 2 | ||||
-rw-r--r-- | arch/mips/include/asm/ptrace.h | 2 | ||||
-rw-r--r-- | arch/mips/kernel/traps.c | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/machine_kexec_32.c | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/machine_kexec_64.c | 6 | ||||
-rw-r--r-- | arch/s390/kernel/nmi.c | 2 | ||||
-rw-r--r-- | arch/tile/kernel/machine_kexec.c | 4 |
10 files changed, 13 insertions, 13 deletions
diff --git a/arch/avr32/include/asm/system.h b/arch/avr32/include/asm/system.h index 9702c2213e1e..62d9ded01635 100644 --- a/arch/avr32/include/asm/system.h +++ b/arch/avr32/include/asm/system.h | |||
@@ -169,7 +169,7 @@ static inline unsigned long __cmpxchg_local(volatile void *ptr, | |||
169 | #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) | 169 | #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) |
170 | 170 | ||
171 | struct pt_regs; | 171 | struct pt_regs; |
172 | void NORET_TYPE die(const char *str, struct pt_regs *regs, long err); | 172 | void die(const char *str, struct pt_regs *regs, long err); |
173 | void _exception(long signr, struct pt_regs *regs, int code, | 173 | void _exception(long signr, struct pt_regs *regs, int code, |
174 | unsigned long addr); | 174 | unsigned long addr); |
175 | 175 | ||
diff --git a/arch/avr32/kernel/traps.c b/arch/avr32/kernel/traps.c index 7aa25756412f..3d760c06f024 100644 --- a/arch/avr32/kernel/traps.c +++ b/arch/avr32/kernel/traps.c | |||
@@ -24,7 +24,7 @@ | |||
24 | 24 | ||
25 | static DEFINE_SPINLOCK(die_lock); | 25 | static DEFINE_SPINLOCK(die_lock); |
26 | 26 | ||
27 | void NORET_TYPE die(const char *str, struct pt_regs *regs, long err) | 27 | void die(const char *str, struct pt_regs *regs, long err) |
28 | { | 28 | { |
29 | static int die_counter; | 29 | static int die_counter; |
30 | 30 | ||
diff --git a/arch/ia64/kernel/machine_kexec.c b/arch/ia64/kernel/machine_kexec.c index 3d3aeef46947..581a16d5e85b 100644 --- a/arch/ia64/kernel/machine_kexec.c +++ b/arch/ia64/kernel/machine_kexec.c | |||
@@ -27,7 +27,7 @@ | |||
27 | #include <asm/sal.h> | 27 | #include <asm/sal.h> |
28 | #include <asm/mca.h> | 28 | #include <asm/mca.h> |
29 | 29 | ||
30 | typedef NORET_TYPE void (*relocate_new_kernel_t)( | 30 | typedef void (*relocate_new_kernel_t)( |
31 | unsigned long indirection_page, | 31 | unsigned long indirection_page, |
32 | unsigned long start_address, | 32 | unsigned long start_address, |
33 | struct ia64_boot_param *boot_param, | 33 | struct ia64_boot_param *boot_param, |
diff --git a/arch/m68k/amiga/config.c b/arch/m68k/amiga/config.c index 82a4bb51d5d8..a3b0558328b6 100644 --- a/arch/m68k/amiga/config.c +++ b/arch/m68k/amiga/config.c | |||
@@ -511,7 +511,7 @@ static unsigned long amiga_gettimeoffset(void) | |||
511 | return ticks + offset; | 511 | return ticks + offset; |
512 | } | 512 | } |
513 | 513 | ||
514 | static NORET_TYPE void amiga_reset(void) | 514 | static void amiga_reset(void) |
515 | ATTRIB_NORET; | 515 | ATTRIB_NORET; |
516 | 516 | ||
517 | static void amiga_reset(void) | 517 | static void amiga_reset(void) |
diff --git a/arch/mips/include/asm/ptrace.h b/arch/mips/include/asm/ptrace.h index de39b1f343ea..3d913259e507 100644 --- a/arch/mips/include/asm/ptrace.h +++ b/arch/mips/include/asm/ptrace.h | |||
@@ -144,7 +144,7 @@ extern int ptrace_set_watch_regs(struct task_struct *child, | |||
144 | extern asmlinkage void syscall_trace_enter(struct pt_regs *regs); | 144 | extern asmlinkage void syscall_trace_enter(struct pt_regs *regs); |
145 | extern asmlinkage void syscall_trace_leave(struct pt_regs *regs); | 145 | extern asmlinkage void syscall_trace_leave(struct pt_regs *regs); |
146 | 146 | ||
147 | extern NORET_TYPE void die(const char *, struct pt_regs *) ATTRIB_NORET; | 147 | extern void die(const char *, struct pt_regs *) ATTRIB_NORET; |
148 | 148 | ||
149 | static inline void die_if_kernel(const char *str, struct pt_regs *regs) | 149 | static inline void die_if_kernel(const char *str, struct pt_regs *regs) |
150 | { | 150 | { |
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 5c8a49d55054..725e9a5ca966 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c | |||
@@ -1340,7 +1340,7 @@ void ejtag_exception_handler(struct pt_regs *regs) | |||
1340 | /* | 1340 | /* |
1341 | * NMI exception handler. | 1341 | * NMI exception handler. |
1342 | */ | 1342 | */ |
1343 | NORET_TYPE void ATTRIB_NORET nmi_exception_handler(struct pt_regs *regs) | 1343 | void ATTRIB_NORET nmi_exception_handler(struct pt_regs *regs) |
1344 | { | 1344 | { |
1345 | bust_spinlocks(1); | 1345 | bust_spinlocks(1); |
1346 | printk("NMI taken!!!!\n"); | 1346 | printk("NMI taken!!!!\n"); |
diff --git a/arch/powerpc/kernel/machine_kexec_32.c b/arch/powerpc/kernel/machine_kexec_32.c index e63f2e7d2efb..026e7f153949 100644 --- a/arch/powerpc/kernel/machine_kexec_32.c +++ b/arch/powerpc/kernel/machine_kexec_32.c | |||
@@ -16,7 +16,7 @@ | |||
16 | #include <asm/hw_irq.h> | 16 | #include <asm/hw_irq.h> |
17 | #include <asm/io.h> | 17 | #include <asm/io.h> |
18 | 18 | ||
19 | typedef NORET_TYPE void (*relocate_new_kernel_t)( | 19 | typedef void (*relocate_new_kernel_t)( |
20 | unsigned long indirection_page, | 20 | unsigned long indirection_page, |
21 | unsigned long reboot_code_buffer, | 21 | unsigned long reboot_code_buffer, |
22 | unsigned long start_address) ATTRIB_NORET; | 22 | unsigned long start_address) ATTRIB_NORET; |
diff --git a/arch/powerpc/kernel/machine_kexec_64.c b/arch/powerpc/kernel/machine_kexec_64.c index 26ccbf77dd41..5fbbf814923a 100644 --- a/arch/powerpc/kernel/machine_kexec_64.c +++ b/arch/powerpc/kernel/machine_kexec_64.c | |||
@@ -307,9 +307,9 @@ static union thread_union kexec_stack __init_task_data = | |||
307 | struct paca_struct kexec_paca; | 307 | struct paca_struct kexec_paca; |
308 | 308 | ||
309 | /* Our assembly helper, in kexec_stub.S */ | 309 | /* Our assembly helper, in kexec_stub.S */ |
310 | extern NORET_TYPE void kexec_sequence(void *newstack, unsigned long start, | 310 | extern void kexec_sequence(void *newstack, unsigned long start, |
311 | void *image, void *control, | 311 | void *image, void *control, |
312 | void (*clear_all)(void)) ATTRIB_NORET; | 312 | void (*clear_all)(void)) ATTRIB_NORET; |
313 | 313 | ||
314 | /* too late to fail here */ | 314 | /* too late to fail here */ |
315 | void default_machine_kexec(struct kimage *image) | 315 | void default_machine_kexec(struct kimage *image) |
diff --git a/arch/s390/kernel/nmi.c b/arch/s390/kernel/nmi.c index fab88431a06f..0fd2e863e114 100644 --- a/arch/s390/kernel/nmi.c +++ b/arch/s390/kernel/nmi.c | |||
@@ -30,7 +30,7 @@ struct mcck_struct { | |||
30 | 30 | ||
31 | static DEFINE_PER_CPU(struct mcck_struct, cpu_mcck); | 31 | static DEFINE_PER_CPU(struct mcck_struct, cpu_mcck); |
32 | 32 | ||
33 | static NORET_TYPE void s390_handle_damage(char *msg) | 33 | static void s390_handle_damage(char *msg) |
34 | { | 34 | { |
35 | smp_send_stop(); | 35 | smp_send_stop(); |
36 | disabled_wait((unsigned long) __builtin_return_address(0)); | 36 | disabled_wait((unsigned long) __builtin_return_address(0)); |
diff --git a/arch/tile/kernel/machine_kexec.c b/arch/tile/kernel/machine_kexec.c index e00d7179989e..b0c907059067 100644 --- a/arch/tile/kernel/machine_kexec.c +++ b/arch/tile/kernel/machine_kexec.c | |||
@@ -248,10 +248,10 @@ static void setup_quasi_va_is_pa(void) | |||
248 | } | 248 | } |
249 | 249 | ||
250 | 250 | ||
251 | NORET_TYPE void machine_kexec(struct kimage *image) | 251 | void machine_kexec(struct kimage *image) |
252 | { | 252 | { |
253 | void *reboot_code_buffer; | 253 | void *reboot_code_buffer; |
254 | NORET_TYPE void (*rnk)(unsigned long, void *, unsigned long) | 254 | void (*rnk)(unsigned long, void *, unsigned long) |
255 | ATTRIB_NORET; | 255 | ATTRIB_NORET; |
256 | 256 | ||
257 | /* Mask all interrupts before starting to reboot. */ | 257 | /* Mask all interrupts before starting to reboot. */ |