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 | |
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>
-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 | ||||
-rw-r--r-- | include/linux/kernel.h | 6 | ||||
-rw-r--r-- | include/linux/linkage.h | 1 | ||||
-rw-r--r-- | include/linux/sched.h | 2 | ||||
-rw-r--r-- | kernel/exit.c | 6 | ||||
-rw-r--r-- | kernel/panic.c | 2 |
15 files changed, 21 insertions, 22 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. */ |
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 60934395e36c..aaf1753dd2b3 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -185,16 +185,16 @@ static inline void might_fault(void) | |||
185 | 185 | ||
186 | extern struct atomic_notifier_head panic_notifier_list; | 186 | extern struct atomic_notifier_head panic_notifier_list; |
187 | extern long (*panic_blink)(int state); | 187 | extern long (*panic_blink)(int state); |
188 | NORET_TYPE __printf(1, 2) | 188 | __printf(1, 2) |
189 | void panic(const char *fmt, ...) | 189 | void panic(const char *fmt, ...) |
190 | ATTRIB_NORET __cold; | 190 | ATTRIB_NORET __cold; |
191 | extern void oops_enter(void); | 191 | extern void oops_enter(void); |
192 | extern void oops_exit(void); | 192 | extern void oops_exit(void); |
193 | void print_oops_end_marker(void); | 193 | void print_oops_end_marker(void); |
194 | extern int oops_may_print(void); | 194 | extern int oops_may_print(void); |
195 | NORET_TYPE void do_exit(long error_code) | 195 | void do_exit(long error_code) |
196 | ATTRIB_NORET; | 196 | ATTRIB_NORET; |
197 | NORET_TYPE void complete_and_exit(struct completion *, long) | 197 | void complete_and_exit(struct completion *, long) |
198 | ATTRIB_NORET; | 198 | ATTRIB_NORET; |
199 | 199 | ||
200 | /* Internal, do not use. */ | 200 | /* Internal, do not use. */ |
diff --git a/include/linux/linkage.h b/include/linux/linkage.h index c75074cb8ad4..6a8f252e49ee 100644 --- a/include/linux/linkage.h +++ b/include/linux/linkage.h | |||
@@ -88,7 +88,6 @@ | |||
88 | 88 | ||
89 | #endif | 89 | #endif |
90 | 90 | ||
91 | #define NORET_TYPE /**/ | ||
92 | #define ATTRIB_NORET __attribute__((noreturn)) | 91 | #define ATTRIB_NORET __attribute__((noreturn)) |
93 | 92 | ||
94 | #endif | 93 | #endif |
diff --git a/include/linux/sched.h b/include/linux/sched.h index 21cd0303af51..4032ec1cf836 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -2275,7 +2275,7 @@ extern void __cleanup_sighand(struct sighand_struct *); | |||
2275 | extern void exit_itimers(struct signal_struct *); | 2275 | extern void exit_itimers(struct signal_struct *); |
2276 | extern void flush_itimer_signals(void); | 2276 | extern void flush_itimer_signals(void); |
2277 | 2277 | ||
2278 | extern NORET_TYPE void do_group_exit(int); | 2278 | extern void do_group_exit(int); |
2279 | 2279 | ||
2280 | extern void daemonize(const char *, ...); | 2280 | extern void daemonize(const char *, ...); |
2281 | extern int allow_signal(int); | 2281 | extern int allow_signal(int); |
diff --git a/kernel/exit.c b/kernel/exit.c index 94ed6e20bb53..c44738267be7 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -887,7 +887,7 @@ static void check_stack_usage(void) | |||
887 | static inline void check_stack_usage(void) {} | 887 | static inline void check_stack_usage(void) {} |
888 | #endif | 888 | #endif |
889 | 889 | ||
890 | NORET_TYPE void do_exit(long code) | 890 | void do_exit(long code) |
891 | { | 891 | { |
892 | struct task_struct *tsk = current; | 892 | struct task_struct *tsk = current; |
893 | int group_dead; | 893 | int group_dead; |
@@ -1051,7 +1051,7 @@ NORET_TYPE void do_exit(long code) | |||
1051 | 1051 | ||
1052 | EXPORT_SYMBOL_GPL(do_exit); | 1052 | EXPORT_SYMBOL_GPL(do_exit); |
1053 | 1053 | ||
1054 | NORET_TYPE void complete_and_exit(struct completion *comp, long code) | 1054 | void complete_and_exit(struct completion *comp, long code) |
1055 | { | 1055 | { |
1056 | if (comp) | 1056 | if (comp) |
1057 | complete(comp); | 1057 | complete(comp); |
@@ -1070,7 +1070,7 @@ SYSCALL_DEFINE1(exit, int, error_code) | |||
1070 | * Take down every thread in the group. This is called by fatal signals | 1070 | * Take down every thread in the group. This is called by fatal signals |
1071 | * as well as by sys_exit_group (below). | 1071 | * as well as by sys_exit_group (below). |
1072 | */ | 1072 | */ |
1073 | NORET_TYPE void | 1073 | void |
1074 | do_group_exit(int exit_code) | 1074 | do_group_exit(int exit_code) |
1075 | { | 1075 | { |
1076 | struct signal_struct *sig = current->signal; | 1076 | struct signal_struct *sig = current->signal; |
diff --git a/kernel/panic.c b/kernel/panic.c index 3458469eb7c3..6fd09ed6fd90 100644 --- a/kernel/panic.c +++ b/kernel/panic.c | |||
@@ -57,7 +57,7 @@ EXPORT_SYMBOL(panic_blink); | |||
57 | * | 57 | * |
58 | * This function never returns. | 58 | * This function never returns. |
59 | */ | 59 | */ |
60 | NORET_TYPE void panic(const char * fmt, ...) | 60 | void panic(const char *fmt, ...) |
61 | { | 61 | { |
62 | static char buf[1024]; | 62 | static char buf[1024]; |
63 | va_list args; | 63 | va_list args; |