summaryrefslogtreecommitdiffstats
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2020-10-15 20:12:02 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2020-10-16 11:11:21 -0700
commit8020b253631286807ca41f176e96e18af14bfb2e (patch)
tree8f807021c1a95b45bc0cdbfc83d6a85573941250 /scripts/const_structs.checkpatch
parented4761f7804743e73ba2c0c140535a16d07032b6 (diff)
downloadlinux-8020b253631286807ca41f176e96e18af14bfb2e.tar.gz
linux-8020b253631286807ca41f176e96e18af14bfb2e.tar.bz2
linux-8020b253631286807ca41f176e96e18af14bfb2e.zip
checkpatch: warn if trace_printk and friends are called
trace_printk is meant as a debugging tool, and should not be compiled into production code without specific debug Kconfig options enabled, or source code changes, as indicated by the warning that shows up on boot if any trace_printk is called: ** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE ** ** ** ** trace_printk() being used. Allocating extra memory. ** ** ** ** This means that this is a DEBUG kernel and it is ** ** unsafe for production use. ** Let's warn developers when they try to submit such a change. Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Joe Perches <joe@perches.com> Link: https://lkml.kernel.org/r/20200825193600.v2.1.I723c43c155f02f726c97501be77984f1e6bb740a@changeid Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions