checkpatch: whitespace - add/remove blank lines
Add blank lines between a few tests, remove an extraneous one. 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
2c92488ab2
commit
6712d85852
|
@ -3348,18 +3348,20 @@ sub process {
|
||||||
if ($line =~ /^.\s*sema_init.+,\W?0\W?\)/) {
|
if ($line =~ /^.\s*sema_init.+,\W?0\W?\)/) {
|
||||||
WARN("CONSIDER_COMPLETION",
|
WARN("CONSIDER_COMPLETION",
|
||||||
"consider using a completion\n" . $herecurr);
|
"consider using a completion\n" . $herecurr);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# recommend kstrto* over simple_strto* and strict_strto*
|
# recommend kstrto* over simple_strto* and strict_strto*
|
||||||
if ($line =~ /\b((simple|strict)_(strto(l|ll|ul|ull)))\s*\(/) {
|
if ($line =~ /\b((simple|strict)_(strto(l|ll|ul|ull)))\s*\(/) {
|
||||||
WARN("CONSIDER_KSTRTO",
|
WARN("CONSIDER_KSTRTO",
|
||||||
"$1 is obsolete, use k$3 instead\n" . $herecurr);
|
"$1 is obsolete, use k$3 instead\n" . $herecurr);
|
||||||
}
|
}
|
||||||
|
|
||||||
# check for __initcall(), use device_initcall() explicitly please
|
# check for __initcall(), use device_initcall() explicitly please
|
||||||
if ($line =~ /^.\s*__initcall\s*\(/) {
|
if ($line =~ /^.\s*__initcall\s*\(/) {
|
||||||
WARN("USE_DEVICE_INITCALL",
|
WARN("USE_DEVICE_INITCALL",
|
||||||
"please use device_initcall() instead of __initcall()\n" . $herecurr);
|
"please use device_initcall() instead of __initcall()\n" . $herecurr);
|
||||||
}
|
}
|
||||||
|
|
||||||
# check for various ops structs, ensure they are const.
|
# check for various ops structs, ensure they are const.
|
||||||
my $struct_ops = qr{acpi_dock_ops|
|
my $struct_ops = qr{acpi_dock_ops|
|
||||||
address_space_operations|
|
address_space_operations|
|
||||||
|
|
Loading…
Reference in New Issue