From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757390AbZINV6G (ORCPT ); Mon, 14 Sep 2009 17:58:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932319AbZINV6D (ORCPT ); Mon, 14 Sep 2009 17:58:03 -0400 Received: from mail3.caviumnetworks.com ([12.108.191.235]:9420 "EHLO mail3.caviumnetworks.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757317AbZINV4B (ORCPT ); Mon, 14 Sep 2009 17:56:01 -0400 From: David Daney To: torvalds@linux-foundation.org, akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, David Daney Subject: [PATCH 03/11] MIPS: Convert BUG() to use unreachable() Date: Mon, 14 Sep 2009 14:55:32 -0700 Message-Id: <1252965340-31735-3-git-send-email-ddaney@caviumnetworks.com> X-Mailer: git-send-email 1.6.0.6 In-Reply-To: <4AAEBAC2.1050905@caviumnetworks.com> References: <4AAEBAC2.1050905@caviumnetworks.com> X-OriginalArrivalTime: 14 Sep 2009 21:55:49.0949 (UTC) FILETIME=[1F3D6ED0:01CA3586] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the new unreachable() macro instead of while(1); Signed-off-by: David Daney Acked-by: Ralf Baechle --- arch/mips/include/asm/bug.h | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/arch/mips/include/asm/bug.h b/arch/mips/include/asm/bug.h index 6cf29c2..540c98a 100644 --- a/arch/mips/include/asm/bug.h +++ b/arch/mips/include/asm/bug.h @@ -11,9 +11,7 @@ static inline void __noreturn BUG(void) { __asm__ __volatile__("break %0" : : "i" (BRK_BUG)); - /* Fool GCC into thinking the function doesn't return. */ - while (1) - ; + unreachable(); } #define HAVE_ARCH_BUG -- 1.6.2.5