checkpatch: add warning for uses of printk_ratelimit
authorJoe Perches <joe@perches.com>
Wed, 15 Jun 2011 22:08:17 +0000 (15:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Jun 2011 03:03:59 +0000 (20:03 -0700)
commit17441227f6258fc379c6ebfe21c3eec43b6f0de3
treed38f88d97472ae33827fd8cd247e0cd5161c61ba
parentac5622418bbff9cd3dc607aa57dfb4f62a7f2043
checkpatch: add warning for uses of printk_ratelimit

Warn about uses of printk_ratelimit() because it uses a global state and
can hide subsequent useful messages.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Cc: Richard Weinberger <richard@nod.at>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl