From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753062AbbDFJFI (ORCPT ); Mon, 6 Apr 2015 05:05:08 -0400 Received: from mail-lb0-f173.google.com ([209.85.217.173]:35040 "EHLO mail-lb0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753035AbbDFJFC (ORCPT ); Mon, 6 Apr 2015 05:05:02 -0400 From: Alexander Kuleshov To: Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" Cc: linux-kernel@vger.kernel.org, Alexander Kuleshov Subject: [PATCH] x86/boot: use __noreturn instead of directly __attribute__ definition Date: Mon, 6 Apr 2015 15:04:37 +0600 Message-Id: <1428311077-32198-1-git-send-email-kuleshovmail@gmail.com> X-Mailer: git-send-email 2.3.3.611.g09038fc.dirty Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 . We no need to include to the arch/x86/boot/boot.h, because boot.h already includes "bitops.h" which already includes . Signed-off-by: Alexander Kuleshov --- 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