Commit 6712d858 authored by Joe Perches's avatar Joe Perches Committed by Linus Torvalds
Browse files

checkpatch: whitespace - add/remove blank lines

Add blank lines between a few tests, remove an extraneous one.
Signed-off-by: default avatarJoe Perches <>
Cc: Andy Whitcroft <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 2c92488a
......@@ -3348,18 +3348,20 @@ sub process {
if ($line =~ /^.\s*sema_init.+,\W?0\W?\)/) {
"consider using a completion\n" . $herecurr);
# recommend kstrto* over simple_strto* and strict_strto*
if ($line =~ /\b((simple|strict)_(strto(l|ll|ul|ull)))\s*\(/) {
"$1 is obsolete, use k$3 instead\n" . $herecurr);
# check for __initcall(), use device_initcall() explicitly please
if ($line =~ /^.\s*__initcall\s*\(/) {
"please use device_initcall() instead of __initcall()\n" . $herecurr);
# check for various ops structs, ensure they are const.
my $struct_ops = qr{acpi_dock_ops|
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment