Re: [PATCH v3 1/5] bug: When !CONFIG_BUG, simplify WARN_ON_ONCE and family

2014-03-11 Thread Josh Triplett
On Tue, Mar 11, 2014 at 05:40:25PM +0100, Arnd Bergmann wrote: > On Monday 10 March 2014, Josh Triplett wrote: > > > > When !CONFIG_BUG, WARN_ON and family become simple passthroughs of their > > condition argument; however, WARN_ON_ONCE and family still have > > conditions and a boolean to detect

Re: [PATCH v3 1/5] bug: When !CONFIG_BUG, simplify WARN_ON_ONCE and family

2014-03-11 Thread Arnd Bergmann
On Monday 10 March 2014, Josh Triplett wrote: > > When !CONFIG_BUG, WARN_ON and family become simple passthroughs of their > condition argument; however, WARN_ON_ONCE and family still have > conditions and a boolean to detect one-time invocation, even though the > warning they'd emit doesn't exist

[PATCH v3 1/5] bug: When !CONFIG_BUG, simplify WARN_ON_ONCE and family

2014-03-09 Thread Josh Triplett
When !CONFIG_BUG, WARN_ON and family become simple passthroughs of their condition argument; however, WARN_ON_ONCE and family still have conditions and a boolean to detect one-time invocation, even though the warning they'd emit doesn't exist. Make the existing definitions conditional on CONFIG_BU