Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754547AbZIKP7Q (ORCPT ); Fri, 11 Sep 2009 11:59:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753634AbZIKP7P (ORCPT ); Fri, 11 Sep 2009 11:59:15 -0400 Received: from mail3.caviumnetworks.com ([12.108.191.235]:13390 "EHLO mail3.caviumnetworks.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751920AbZIKP7N (ORCPT ); Fri, 11 Sep 2009 11:59:13 -0400 Message-ID: <4AAA73A4.9010601@caviumnetworks.com> Date: Fri, 11 Sep 2009 08:58:28 -0700 From: David Daney User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: Michael Buesch CC: linuxppc-dev@lists.ozlabs.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, linux-mips@linux-mips.org, Heiko Carstens , linuxppc-dev@ozlabs.org, Paul Mackerras , "H. Peter Anvin" , linux-s390@vger.kernel.org, linux-am33-list@redhat.com, Helge Deller , x86@kernel.org, Ingo Molnar , Mike Frysinger , Ivan Kokshaysky , uclinux-dist-devel@blackfin.uclinux.org, Thomas Gleixner , Richard Henderson , Haavard Skinnemoen , linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org, ralf@linux-mips.org, Kyle McMartin , linux-alpha@vger.kernel.org, Martin Schwidefsky , linux390@de.ibm.com, Koichi Yasutake Subject: Re: [PATCH 01/10] Add support for GCC-4.5's __builtin_unreachable() to compiler.h References: <4AA991C1.1050800@caviumnetworks.com> <1252627011-2933-1-git-send-email-ddaney@caviumnetworks.com> <200909111633.00665.mb@bu3sch.de> In-Reply-To: <200909111633.00665.mb@bu3sch.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 11 Sep 2009 15:58:28.0891 (UTC) FILETIME=[B4225EB0:01CA32F8] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 622 Lines: 21 Michael Buesch wrote: > On Friday 11 September 2009 01:56:42 David Daney wrote: >> +/* Unreachable code */ >> +#ifndef unreachable >> +# define unreachable() do { for (;;) ; } while (0) >> +#endif > > # define unreachable() do { } while (1) > > ? :) Clearly I was not thinking clearly when I wrote that part. RTH noted the same thing. I will fix it. Thanks, David Daney -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/