Messages in this thread |  | | From | Linus Torvalds <> | Date | Wed, 5 Oct 2016 10:07:55 -0700 | Subject | Re: [PATCH] checkpatch: extend BUG warning |
| |
On Wed, Oct 5, 2016 at 10:00 AM, Joe Perches <joe@perches.com> 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.
Linus
|  |