mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 08:31:13 +00:00
checkpatch: add <foo>_<level> and MODULE_<BAR> to 80 column exceptions
Many module or file local logging functions use specific prefixes other than pr|dev|netdev. Allow all forms like foo_printk and foo_err to be longer than 80 columns. Also allow MODULE_<BAR> declarations to be longer than 80 columns. Signed-off-by: Joe Perches <joe@perches.com> Cc: Andy Whitcroft <apw@canonical.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
428e2fdc4e
commit
b05317221b
1 changed files with 3 additions and 3 deletions
|
@ -210,10 +210,10 @@ our $typeTypedefs = qr{(?x:
|
||||||
|
|
||||||
our $logFunctions = qr{(?x:
|
our $logFunctions = qr{(?x:
|
||||||
printk|
|
printk|
|
||||||
pr_(debug|dbg|vdbg|devel|info|warning|err|notice|alert|crit|emerg|cont)|
|
[a-z]+_(emerg|alert|crit|err|warning|warn|notice|info|debug|dbg|vdbg|devel|cont|WARN)|
|
||||||
(dev|netdev|netif)_(printk|dbg|vdbg|info|warn|err|notice|alert|crit|emerg|WARN)|
|
|
||||||
WARN|
|
WARN|
|
||||||
panic
|
panic|
|
||||||
|
MODULE_[A-Z_]+
|
||||||
)};
|
)};
|
||||||
|
|
||||||
our @typeList = (
|
our @typeList = (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue