From: Matt Turner <mattst88@gmail.com>
To: David Daney <ddaney@caviumnetworks.com>
Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org,
akpm@linux-foundation.org, torvalds@linux-foundation.org,
Richard Henderson <rth@twiddle.net>,
Ivan Kokshaysky <ink@jurassic.park.msu.ru>,
linux-alpha@vger.kernel.org
Subject: Re: [PATCH 4/5] alpha: Convert BUG() to use unreachable()
Date: Thu, 10 Dec 2009 19:42:59 -0500 [thread overview]
Message-ID: <b4198de60912101642u147f4592r9337dd9b7d7c604b@mail.gmail.com> (raw)
In-Reply-To: <1260466101-17545-4-git-send-email-ddaney@caviumnetworks.com>
On Thu, Dec 10, 2009 at 12:28 PM, David Daney <ddaney@caviumnetworks.com> wrote:
> Use the new unreachable() macro instead of for(;;);
>
> Signed-off-by: David Daney <ddaney@caviumnetworks.com>
> CC: Richard Henderson <rth@twiddle.net>
> CC: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
> CC: Matt Turner <mattst88@gmail.com>
> CC: linux-alpha@vger.kernel.org
> ---
> arch/alpha/include/asm/bug.h | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/arch/alpha/include/asm/bug.h b/arch/alpha/include/asm/bug.h
> index 1720c8a..f091682 100644
> --- a/arch/alpha/include/asm/bug.h
> +++ b/arch/alpha/include/asm/bug.h
> @@ -13,7 +13,8 @@
> "call_pal %0 # bugchk\n\t" \
> ".long %1\n\t.8byte %2" \
> : : "i"(PAL_bugchk), "i"(__LINE__), "i"(__FILE__)); \
> - for ( ; ; ); } while (0)
> + unreachable(); \
> + } while (0)
>
> #define HAVE_ARCH_BUG
> #endif
> --
> 1.6.2.5
Thanks David. I've pushed this into my tree.
Matt
next prev parent reply other threads:[~2009-12-11 0:42 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-10 17:25 [PATCH 0/5] More unreachable() conversions David Daney
2009-12-10 17:25 ` David Daney
2009-12-10 17:28 ` [PATCH 1/5] mn10300: Convert BUG() to use unreachable() David Daney
2009-12-10 17:28 ` David Daney
2009-12-10 17:28 ` [PATCH 2/5] parisc: " David Daney
2009-12-10 17:28 ` David Daney
2009-12-10 21:54 ` Kyle McMartin
2009-12-10 21:54 ` Kyle McMartin
2009-12-10 17:28 ` [PATCH 3/5] powerpc: " David Daney
2009-12-10 17:28 ` [PATCH 4/5] alpha: " David Daney
2009-12-11 0:42 ` Matt Turner [this message]
2009-12-10 17:28 ` [PATCH 5/5] blackfin: " David Daney
2009-12-10 17:28 ` David Daney
2009-12-10 21:33 ` [Uclinux-dist-devel] " Mike Frysinger
2009-12-10 21:35 ` David Daney
2009-12-10 22:42 ` Mike Frysinger
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=b4198de60912101642u147f4592r9337dd9b7d7c604b@mail.gmail.com \
--to=mattst88@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=ddaney@caviumnetworks.com \
--cc=ink@jurassic.park.msu.ru \
--cc=linux-alpha@vger.kernel.org \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rth@twiddle.net \
--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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).