Messages in this thread | | | Date | Sat, 22 Feb 2014 13:54:49 -0800 | From | Randy Dunlap <> | Subject | Re: [PATCH RESEND] bug: When !CONFIG_BUG, simplify WARN_ON_ONCE and family |
| |
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
| |