]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: allow longer logging function names
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 3 Jul 2013 22:05:35 +0000 (15:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:07:45 +0000 (16:07 -0700)
commitb008b2d47200c4a872d31c0e11f7eac744b3297f
treebedce15993d5f37ff1b7af79a5e1b4c1a58b9392
parent2f9ad9978303a6c8170c497e6a7cfb693e0266cd
checkpatch: allow longer logging function names

The current $logFunction regular expression allows names like dev_warn,
e_dbg, netdev_info, etc, but some log functions are now written like
e_dev_warn, so allow 1 or 2 word blocks with an underscore before the
logging level.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
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