]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: add printk_once and printk_ratelimit to prefer pr_<level> warning
authorJoe Perches <joe@perches.com>
Wed, 16 Dec 2020 04:45:24 +0000 (20:45 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Dec 2020 06:46:17 +0000 (22:46 -0800)
commit829cfb9bc7038004446a64206ae99a92f43fb06f
treed65e17aac3c9466644087feadf593bb6dff14adc
parent41370e38ac64eda2787f3c9d0bee9ded52691b57
checkpatch: add printk_once and printk_ratelimit to prefer pr_<level> warning

Add the _once and _ratelimited variants to the test for
printk(KERN_<LEVEL> that should prefer pr_<level>.

Miscellanea:

o Add comment description for the conversions

[joe@perches.com: fixlet]
Link: https://lkml.kernel.org/r/32260871d4718ba7f48a8e9e07452bb76de300db.camel@perches.comLink:
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl