checkpatch: add TP_printk to list of logging functions
PATCH 44/94 checkpatch: add TP_printk to list of logging functions
From: Joe Perches <[email protected]>
Subject: checkpatch: add TP_printk to list of logging functions
So the line length check can be bypassed by its callers.
Link http://lkml.kernel.org/r/7de542c08a6e79f2ebe7c1416c9f403c23fdcc09.1508282823.git.joe@perches.com open here
Signed-off-by Joe Perches <[email protected]>
Reported-by Song Liu <[email protected]>
Tested-by Song Liu <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
scripts/checkpatch.pl | 1 + 1 file changed, 1 insertion(+)
scripts/checkpatch.pl renamed from scripts/checkpatch.pl~checkpatch-add-tp_printk-to-list-of-logging-functions +1 -0
@@ -454,6 +454,7 @@ our $zero_initializer = qr{(?:(?:0[xX])? our $logFunctions = qr{(?x: printk(?:_ratelimited|_once|_deferred_once|_deferred|)| (?:[a-z0-9]+_){1,2}(?:printk|emerg|alert|crit|err|warning|warn|notice|info|debug|dbg|vdbg|devel|cont|WARN)(?:_ratelimited|_once|)| + TP_printk| WARN(?:_RATELIMIT|_ONCE|)| panic| MODULE_[A-Z_]+|
_