checkpatch: do not require an empty line before error injection
[linux-2.6-block.git] / scripts / checkpatch.pl
index 25fdb7fda1128aa99d2d32ee3a125fc4c00292cf..a94ed6c46a6d41ba92ae244f6a1851fcb3a5bf12 100755 (executable)
@@ -4054,7 +4054,7 @@ sub process {
                if ($prevline =~ /^[\+ ]};?\s*$/ &&
                    $line =~ /^\+/ &&
                    !($line =~ /^\+\s*$/ ||
-                     $line =~ /^\+\s*(?:EXPORT_SYMBOL|early_param)/ ||
+                     $line =~ /^\+\s*(?:EXPORT_SYMBOL|early_param|ALLOW_ERROR_INJECTION)/ ||
                      $line =~ /^\+\s*MODULE_/i ||
                      $line =~ /^\+\s*\#\s*(?:end|elif|else)/ ||
                      $line =~ /^\+[a-z_]*init/ ||