checkpatch: fix false positive on empty block comment lines
[sfrench/cifs-2.6.git] / scripts / checkpatch.pl
index 8a5f0367a2f1995fb8f6f4ebcfa00a9d92ba7fab..e1ddcafdc1766fd64b487b43cd8579765d66c20b 100755 (executable)
@@ -3464,7 +3464,7 @@ sub process {
                if ($realfile =~ m@^(drivers/net/|net/)@ &&
                    $prevrawline =~ /^\+[ \t]*\/\*[ \t]*$/ &&
                    $rawline =~ /^\+[ \t]*\*/ &&
-                   $realline > 2) {
+                   $realline > 3) { # Do not warn about the initial copyright comment block after SPDX-License-Identifier
                        WARN("NETWORKING_BLOCK_COMMENT_STYLE",
                             "networking block comments don't use an empty /* line, use /* Comment...\n" . $hereprev);
                }