]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: warn on logging functions with KERN_<LEVEL>
authorJoe Perches <joe@perches.com>
Mon, 13 Oct 2014 22:52:01 +0000 (15:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 14 Oct 2014 00:18:15 +0000 (02:18 +0200)
commit8a4be1c37c7eb6d849ce2c6cbcd9e43882bd4cb2
tree36223291ffb6e126634841301453262c616a0ca7
parentc4f808bc28a9650e19f642cb4e1686ba4b487938
checkpatch: warn on logging functions with KERN_<LEVEL>

Warn on probable misuses of logging functions with KERN_<LEVEL>
like pr_err(KERN_ERR "foo\n");

Signed-off-by: Joe Perches <joe@perches.com>
Suggested-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl