[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <b4198de60912101642u147f4592r9337dd9b7d7c604b@mail.gmail.com>
Date: Thu, 10 Dec 2009 19:42:59 -0500
From: Matt Turner <mattst88@...il.com>
To: David Daney <ddaney@...iumnetworks.com>
Cc: linux-kernel@...r.kernel.org, linux-arch@...r.kernel.org,
akpm@...ux-foundation.org, torvalds@...ux-foundation.org,
Richard Henderson <rth@...ddle.net>,
Ivan Kokshaysky <ink@...assic.park.msu.ru>,
linux-alpha@...r.kernel.org
Subject: Re: [PATCH 4/5] alpha: Convert BUG() to use unreachable()
On Thu, Dec 10, 2009 at 12:28 PM, David Daney <ddaney@...iumnetworks.com> wrote:
> Use the new unreachable() macro instead of for(;;);
>
> Signed-off-by: David Daney <ddaney@...iumnetworks.com>
> CC: Richard Henderson <rth@...ddle.net>
> CC: Ivan Kokshaysky <ink@...assic.park.msu.ru>
> CC: Matt Turner <mattst88@...il.com>
> CC: linux-alpha@...r.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists