diff options
author | Joe Perches <joe@perches.com> | 2015-09-09 15:37:27 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-10 13:29:01 -0700 |
commit | 9d3e3c705eb395528fd8f17208c87581b134da48 (patch) | |
tree | 6d96f106f1d7704fdb800321ab03e1dd111b5ad0 /Documentation/mips | |
parent | fe043ea1205695f2224b279ac9f5cc1742d18f0b (diff) | |
download | op-kernel-dev-9d3e3c705eb395528fd8f17208c87581b134da48.zip op-kernel-dev-9d3e3c705eb395528fd8f17208c87581b134da48.tar.gz |
checkpatch: add warning on BUG/BUG_ON use
Using BUG/BUG_ON crashes the kernel and is just unfriendly.
Enable code that emits a warning on BUG/BUG_ON use.
Make the code emit the message at WARNING level when scanning a patch and
at CHECK level when scanning files so that script users don't feel an
obligation to fix code that might be above their pay grade.
Signed-off-by: Joe Perches <joe@perches.com>
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/mips')
0 files changed, 0 insertions, 0 deletions