From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752635AbaBVVzB (ORCPT ); Sat, 22 Feb 2014 16:55:01 -0500 Received: from merlin.infradead.org ([205.233.59.134]:36966 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751547AbaBVVzA (ORCPT ); Sat, 22 Feb 2014 16:55:00 -0500 Message-ID: <53091CA9.3060403@infradead.org> Date: Sat, 22 Feb 2014 13:54:49 -0800 From: Randy Dunlap User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Josh Triplett , Andrew Morton , Arnd Bergmann , linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RESEND] bug: When !CONFIG_BUG, simplify WARN_ON_ONCE and family References: <20140222192325.GA12587@thin> In-Reply-To: <20140222192325.GA12587@thin> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/22/2014 11:23 AM, Josh Triplett wrote: Hi Josh, If you redo these patches, please make while(0) not look like a function call, i.e., use while (0) instead. > +#else /* !CONFIG_BUG */ > +#ifndef HAVE_ARCH_BUG > +#define BUG() do {} while(0) > +#endif > + > +#ifndef HAVE_ARCH_BUG_ON > +#define BUG_ON(condition) do { if (condition) ; } while(0) > +#endif Thanks. -- ~Randy