Re: [PATCH] checkpatch: extend BUG warning
From: Linus Torvalds
Date: Wed Oct 05 2016 - 13:08:01 EST
On Wed, Oct 5, 2016 at 10:00 AM, Joe Perches <joe@xxxxxxxxxxx> wrote:
> 1838 BUILD_BUG_ON
> 632 snd_BUG_ON
At least snd_BUG_ON() is actually fine. The sound system does
something sane with their bugs: they just turn into WARN_ON()'s (and
then !CONFIG_SND_DEBUG will disable them entirely).
I haven't checked the other ones, but it was actually nice to see that
one: considering that it's the most widely used one (ignoring the
obviously great BUILD_BUG_ON), the fact that it just spews a warning
indicates that that model works fine.