Messages in this thread | | | From | Arnd Bergmann <> | Date | Mon, 10 Sep 2018 14:16:52 +0200 | Subject | Re: [PATCH v2] asm-generic: bug: unify hints for BUG_ON() |
| |
On Sat, Sep 8, 2018 at 6:59 AM Igor Stoppa <igor.stoppa@gmail.com> wrote: > > If BUG_ON() is used instead of BUG(), it means that probably the > preferred outcome is to not BUG(), therefore the condition tested should > be unlikely(). > > However, when CONFIG_PROFILE_ANNOTATED_BRANCHES is enabled, the hint is > disabled, to avoid generating false-positive warnings caused by > -Wmaybe-uninitialized. > > Signed-off-by: Igor Stoppa <igor.stoppa@huawei.com> > Cc: Arnd Bergmann <arnd@arndb.de> > Cc: linux-arch@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > ---
Acked-by: Arnd Bergmann <arnd@arndb.de>
I assume this will be included in a longer patch series rather than going through my asm-generic tree, right?
Arnd
| |