From: David Daney <ddaney@caviumnetworks.com> To: torvalds@linux-foundation.org, akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, David Daney <ddaney@caviumnetworks.com>, Benjamin Herrenschmidt <benh@kernel.crashing.org>, Paul Mackerras <paulus@samba.org>, linuxppc-dev@ozlabs.org Subject: [PATCH 07/11] powerpc: Convert BUG() to use unreachable() Date: Mon, 14 Sep 2009 14:55:36 -0700 [thread overview] Message-ID: <1252965340-31735-7-git-send-email-ddaney@caviumnetworks.com> (raw) In-Reply-To: <4AAEBAC2.1050905@caviumnetworks.com> Use the new unreachable() macro instead of for(;;); Signed-off-by: David Daney <ddaney@caviumnetworks.com> CC: Benjamin Herrenschmidt <benh@kernel.crashing.org> CC: Paul Mackerras <paulus@samba.org> CC: linuxppc-dev@ozlabs.org --- arch/powerpc/include/asm/bug.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/include/asm/bug.h b/arch/powerpc/include/asm/bug.h index 64e1fdc..2c15212 100644 --- a/arch/powerpc/include/asm/bug.h +++ b/arch/powerpc/include/asm/bug.h @@ -68,7 +68,7 @@ _EMIT_BUG_ENTRY \ : : "i" (__FILE__), "i" (__LINE__), \ "i" (0), "i" (sizeof(struct bug_entry))); \ - for(;;) ; \ + unreachable(); \ } while (0) #define BUG_ON(x) do { \ -- 1.6.2.5
WARNING: multiple messages have this Message-ID (diff)
From: David Daney <ddaney@caviumnetworks.com> To: torvalds@linux-foundation.org, akpm@linux-foundation.org Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, David Daney <ddaney@caviumnetworks.com>, linuxppc-dev@ozlabs.org, Paul Mackerras <paulus@samba.org> Subject: [PATCH 07/11] powerpc: Convert BUG() to use unreachable() Date: Mon, 14 Sep 2009 14:55:36 -0700 [thread overview] Message-ID: <1252965340-31735-7-git-send-email-ddaney@caviumnetworks.com> (raw) In-Reply-To: <4AAEBAC2.1050905@caviumnetworks.com> Use the new unreachable() macro instead of for(;;); Signed-off-by: David Daney <ddaney@caviumnetworks.com> CC: Benjamin Herrenschmidt <benh@kernel.crashing.org> CC: Paul Mackerras <paulus@samba.org> CC: linuxppc-dev@ozlabs.org --- arch/powerpc/include/asm/bug.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/include/asm/bug.h b/arch/powerpc/include/asm/bug.h index 64e1fdc..2c15212 100644 --- a/arch/powerpc/include/asm/bug.h +++ b/arch/powerpc/include/asm/bug.h @@ -68,7 +68,7 @@ _EMIT_BUG_ENTRY \ : : "i" (__FILE__), "i" (__LINE__), \ "i" (0), "i" (sizeof(struct bug_entry))); \ - for(;;) ; \ + unreachable(); \ } while (0) #define BUG_ON(x) do { \ -- 1.6.2.5
next prev parent reply other threads:[~2009-09-14 21:56 UTC|newest] Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-09-14 21:50 [PATCH 00/11] Add support for GCC's __builtin_unreachable() and use it in BUG (v2) David Daney 2009-09-14 21:50 ` David Daney 2009-09-14 21:50 ` David Daney 2009-09-14 21:50 ` David Daney 2009-09-14 21:55 ` [PATCH 01/11] Add support for GCC-4.5's __builtin_unreachable() to compiler.h (v2) David Daney 2009-09-14 21:55 ` [PATCH 02/11] x86: Convert BUG() to use unreachable() David Daney 2009-09-14 21:55 ` [PATCH 03/11] MIPS: " David Daney 2009-09-15 8:39 ` [PATCH] MIPS: Make more use of unreachable() Ralf Baechle 2009-09-14 21:55 ` [PATCH 04/11] s390: Convert BUG() to use unreachable() David Daney 2009-09-14 21:55 ` [PATCH 05/11] mn10300: " David Daney 2009-09-14 21:55 ` [PATCH 06/11] parisc: " David Daney 2009-09-14 21:55 ` David Daney [this message] 2009-09-14 21:55 ` [PATCH 07/11] powerpc: " David Daney 2009-09-14 21:55 ` [PATCH 08/11] alpha: " David Daney 2009-09-14 21:55 ` [PATCH 09/11] avr32: " David Daney 2009-09-14 21:55 ` [PATCH 10/11] blackfin: " David Daney 2009-09-14 21:55 ` David Daney 2009-09-14 21:55 ` [PATCH 11/11] Use unreachable() in asm-generic/bug.h for !CONFIG_BUG case David Daney 2009-09-14 23:12 ` Brian Gerst 2009-09-14 23:12 ` Brian Gerst 2009-09-14 23:28 ` David Daney 2009-09-14 23:39 ` Linus Torvalds 2009-09-14 23:39 ` Linus Torvalds 2009-09-15 15:35 ` David Daney 2009-09-14 23:54 ` Brian Gerst 2009-09-14 23:54 ` Brian Gerst 2009-09-15 16:02 ` David Daney
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1252965340-31735-7-git-send-email-ddaney@caviumnetworks.com \ --to=ddaney@caviumnetworks.com \ --cc=akpm@linux-foundation.org \ --cc=benh@kernel.crashing.org \ --cc=linux-arch@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linuxppc-dev@ozlabs.org \ --cc=paulus@samba.org \ --cc=torvalds@linux-foundation.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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.