projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45c55e9
)
checkpatch: update $logFunctions
author
Miles Chen
<
[email protected]
>
Fri, 24 Feb 2017 23:01:34 +0000
(15:01 -0800)
committer
Linus Torvalds
<
[email protected]
>
Sat, 25 Feb 2017 01:46:57 +0000
(17:46 -0800)
Currently checkpatch.pl does not recognize printk_deferred* functions as
log functions and complains about the line length of printk_deferred*
functions. Add printk_deferred* to logFunctions to fix it.
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Miles Chen <
[email protected]
>
Acked-by: Joe Perches <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
scripts/checkpatch.pl
patch
|
blob
|
history
diff --git
a/scripts/checkpatch.pl
b/scripts/checkpatch.pl
index 3df2cec47e9194392554b235cc38a1beaee2078f..a556d1a2d85e83a7d5eceffc7f6d91c8d972fe27 100755
(executable)
--- a/
scripts/checkpatch.pl
+++ b/
scripts/checkpatch.pl
@@
-424,7
+424,7
@@
our $typeTypedefs = qr{(?x:
our $zero_initializer = qr{(?:(?:0[xX])?0+$Int_type?|NULL|false)\b};
our $logFunctions = qr{(?x:
- printk(?:_ratelimited|_once|)|
+ 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|)|
panic|