Whamcloud - gitweb
LU-6599 build: warn on likely uses of GPLv3
[fs/lustre-release.git] / contrib / scripts / checkpatch.pl
index fd8b4fd..4936fbe 100755 (executable)
@@ -3451,6 +3451,11 @@ sub process {
                        WARN("EXPORTED_WORLD_WRITABLE",
                             "Exporting world writable files is usually an error. Consider more restrictive permissions.\n" . $herecurr);
                }
+
+               if ($rawline =~ /version 3/) {
+                       WARN("GPLV3",
+                            "using GPLv3 is usually wrong\n" . $herecurr);
+               }
        }
 
        # If we have no input at all, then there is nothing to report on