diff options
author | 2015-09-09 15:37:27 -0700 | |
---|---|---|
committer | 2015-09-10 13:29:01 -0700 | |
commit | 9d3e3c705eb395528fd8f17208c87581b134da48 (patch) | |
tree | 6d96f106f1d7704fdb800321ab03e1dd111b5ad0 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | checkpatch: warn on bare SHA-1 commit IDs in commit logs (diff) | |
download | linux-dev-9d3e3c705eb395528fd8f17208c87581b134da48.tar.xz linux-dev-9d3e3c705eb395528fd8f17208c87581b134da48.zip |
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 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions