Fix error in checkpatch.pl errors due to use of deprecated unescaped
left braces in perl regular expressions.
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Suppress the checkpatch warning "WARNING: line over 80 characters" for
output functions with "_()" macro.
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Handle user space output functions as logFunctions and do not emit the
warning "WARNING: line over 80 characters" against them.
The following functions are supported:
- printf(), fprintf(), sprintf(), and their variants.
- perror().
- syslog() and vsyslog().
- err(), warn(), and their variants.
- private output functions including *_printf(), myprintf(), die(),
error(), and *_logger().
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Code such as:
x = timercmp(&now, &end, <);
Will currently trigger a checkpatch error. e.g.
ERROR: spaces required around that '<'
This is because the "Ignore operators passed as parameters" check looks
only for a comma following the operator. Improve the check by also
looking for a close parenthesis.
Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Backport changes from scripts/checkpatch.pl in kernel v4.0 and add
spelling.txt to enable the spell-check feature that the new
checkpatch.pl supported.
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
This import checkpatch script from a linux kernel and adds description
of patch submission rules to README file.
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>