All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/boot: use __noreturn instead of directly __attribute__ definition
@ 2015-04-06  9:04 Alexander Kuleshov
  2015-04-06 19:35 ` Andreas Mohr
  2015-04-07  8:35 ` Ingo Molnar
  0 siblings, 2 replies; 6+ messages in thread
From: Alexander Kuleshov @ 2015-04-06  9:04 UTC (permalink / raw)
  To: Ingo Molnar, Thomas Gleixner, H. Peter Anvin
  Cc: linux-kernel, Alexander Kuleshov

arch/x86/boot/boot.h defines a couple functions as die and etc..., with
'noreturn' attribute. Let's use __noreturn macro instead of directly
__attribute__ declaration from the <linux/compiler.h>.

We no need to include <linux/compiler.h> to the arch/x86/boot/boot.h,
because boot.h already includes "bitops.h" which already includes
<linux/compiler.h>.

Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
---
 arch/x86/boot/boot.h | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/arch/x86/boot/boot.h b/arch/x86/boot/boot.h
index bd49ec6..3351528 100644
--- a/arch/x86/boot/boot.h
+++ b/arch/x86/boot/boot.h
@@ -305,7 +305,7 @@ void console_init(void);
 void query_edd(void);
 
 /* header.S */
-void __attribute__((noreturn)) die(void);
+void __noreturn die(void);
 
 /* mca.c */
 int query_mca(void);
@@ -314,11 +314,10 @@ int query_mca(void);
 int detect_memory(void);
 
 /* pm.c */
-void __attribute__((noreturn)) go_to_protected_mode(void);
+void __noreturn go_to_protected_mode(void);
 
 /* pmjump.S */
-void __attribute__((noreturn))
-	protected_mode_jump(u32 entrypoint, u32 bootparams);
+void __noreturn protected_mode_jump(u32 entrypoint, u32 bootparams);
 
 /* printf.c */
 int sprintf(char *buf, const char *fmt, ...);
-- 
2.3.3.611.g09038fc.dirty


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-04-07  9:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-06  9:04 [PATCH] x86/boot: use __noreturn instead of directly __attribute__ definition Alexander Kuleshov
2015-04-06 19:35 ` Andreas Mohr
2015-04-07  7:32   ` Alexander Kuleshov
2015-04-07  8:35 ` Ingo Molnar
2015-04-07  8:56   ` Borislav Petkov
2015-04-07  9:17     ` Alexander Kuleshov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.