Commit ff2d8b19a3a62559afba1c53360c8577a7697714
Committed by
Linus Torvalds
1 parent
9402c95f34
Exists in
master
and in
38 other branches
treewide: convert uses of ATTRIB_NORETURN to __noreturn
Use the more commonly used __noreturn instead of ATTRIB_NORETURN. [akpm@linux-foundation.org: coding-style fixes] 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>
Showing 12 changed files with 14 additions and 15 deletions Side-by-side Diff
- arch/ia64/kernel/machine_kexec.c
- arch/m68k/amiga/config.c
- arch/mips/include/asm/ptrace.h
- arch/mips/kernel/traps.c
- arch/mn10300/include/asm/exceptions.h
- arch/powerpc/kernel/machine_kexec_32.c
- arch/powerpc/kernel/machine_kexec_64.c
- arch/s390/include/asm/processor.h
- arch/sh/kernel/process_32.c
- arch/sh/kernel/process_64.c
- arch/tile/kernel/machine_kexec.c
- include/linux/kernel.h
arch/ia64/kernel/machine_kexec.c
arch/m68k/amiga/config.c
arch/mips/include/asm/ptrace.h
... | ... | @@ -144,7 +144,7 @@ |
144 | 144 | extern asmlinkage void syscall_trace_enter(struct pt_regs *regs); |
145 | 145 | extern asmlinkage void syscall_trace_leave(struct pt_regs *regs); |
146 | 146 | |
147 | -extern void die(const char *, struct pt_regs *) ATTRIB_NORET; | |
147 | +extern void die(const char *, struct pt_regs *) __noreturn; | |
148 | 148 | |
149 | 149 | static inline void die_if_kernel(const char *str, struct pt_regs *regs) |
150 | 150 | { |
arch/mips/kernel/traps.c
... | ... | @@ -1340,7 +1340,7 @@ |
1340 | 1340 | /* |
1341 | 1341 | * NMI exception handler. |
1342 | 1342 | */ |
1343 | -void ATTRIB_NORET nmi_exception_handler(struct pt_regs *regs) | |
1343 | +void __noreturn nmi_exception_handler(struct pt_regs *regs) | |
1344 | 1344 | { |
1345 | 1345 | bust_spinlocks(1); |
1346 | 1346 | printk("NMI taken!!!!\n"); |
arch/mn10300/include/asm/exceptions.h
... | ... | @@ -110,7 +110,7 @@ |
110 | 110 | extern asmlinkage void misalignment(struct pt_regs *, enum exception_code); |
111 | 111 | |
112 | 112 | extern void die(const char *, struct pt_regs *, enum exception_code) |
113 | - ATTRIB_NORET; | |
113 | + __noreturn; | |
114 | 114 | |
115 | 115 | extern int die_if_no_fixup(const char *, struct pt_regs *, enum exception_code); |
116 | 116 |
arch/powerpc/kernel/machine_kexec_32.c
... | ... | @@ -19,7 +19,7 @@ |
19 | 19 | typedef void (*relocate_new_kernel_t)( |
20 | 20 | unsigned long indirection_page, |
21 | 21 | unsigned long reboot_code_buffer, |
22 | - unsigned long start_address) ATTRIB_NORET; | |
22 | + unsigned long start_address) __noreturn; | |
23 | 23 | |
24 | 24 | /* |
25 | 25 | * This is a generic machine_kexec function suitable at least for |
arch/powerpc/kernel/machine_kexec_64.c
... | ... | @@ -309,7 +309,7 @@ |
309 | 309 | /* Our assembly helper, in kexec_stub.S */ |
310 | 310 | extern void kexec_sequence(void *newstack, unsigned long start, |
311 | 311 | void *image, void *control, |
312 | - void (*clear_all)(void)) ATTRIB_NORET; | |
312 | + void (*clear_all)(void)) __noreturn; | |
313 | 313 | |
314 | 314 | /* too late to fail here */ |
315 | 315 | void default_machine_kexec(struct kimage *image) |
arch/s390/include/asm/processor.h
... | ... | @@ -236,7 +236,7 @@ |
236 | 236 | /* |
237 | 237 | * Function to drop a processor into disabled wait state |
238 | 238 | */ |
239 | -static inline void ATTRIB_NORET disabled_wait(unsigned long code) | |
239 | +static inline void __noreturn disabled_wait(unsigned long code) | |
240 | 240 | { |
241 | 241 | unsigned long ctl_buf; |
242 | 242 | psw_t dw_psw; |
arch/sh/kernel/process_32.c
arch/sh/kernel/process_64.c
arch/tile/kernel/machine_kexec.c
include/linux/kernel.h
... | ... | @@ -187,15 +187,15 @@ |
187 | 187 | extern long (*panic_blink)(int state); |
188 | 188 | __printf(1, 2) |
189 | 189 | void panic(const char *fmt, ...) |
190 | - ATTRIB_NORET __cold; | |
190 | + __noreturn __cold; | |
191 | 191 | extern void oops_enter(void); |
192 | 192 | extern void oops_exit(void); |
193 | 193 | void print_oops_end_marker(void); |
194 | 194 | extern int oops_may_print(void); |
195 | 195 | void do_exit(long error_code) |
196 | - ATTRIB_NORET; | |
196 | + __noreturn; | |
197 | 197 | void complete_and_exit(struct completion *, long) |
198 | - ATTRIB_NORET; | |
198 | + __noreturn; | |
199 | 199 | |
200 | 200 | /* Internal, do not use. */ |
201 | 201 | int __must_check _kstrtoul(const char *s, unsigned int base, unsigned long *res); |