Whamcloud - gitweb
LU-6142 checkpatch: treat CNETERR and CEMERG as log function 96/41996/2
authorMr NeilBrown <neilb@suse.de>
Wed, 10 Mar 2021 23:22:54 +0000 (10:22 +1100)
committerOleg Drokin <green@whamcloud.com>
Tue, 30 Mar 2021 04:15:48 +0000 (04:15 +0000)
CNETERR and CEMERG are log functions and should be treated as such by
checkpatch.

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I295f0de9244578ebdc925e0e0783d3b436fc6fb0
Reviewed-on: https://review.whamcloud.com/41996
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
contrib/scripts/checkpatch.pl

index 763c205..b4a20d6 100755 (executable)
@@ -457,7 +457,7 @@ 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|)|
        WARN(?:_RATELIMIT|_ONCE|)|
-       CDEBUG|CERROR|CL_LOCK_DEBUG|CWARN|DEBUG_REQ|LCONSOLE_[A-Z]*|
+       CDEBUG|CERROR|CNETERR|CEMERG|CL_LOCK_DEBUG|CWARN|DEBUG_REQ|LCONSOLE_[A-Z]*|
        panic|
        MODULE_[A-Z_]+|
        seq_vprintf|seq_printf|seq_puts