Whamcloud - gitweb
LU-6599 build: warn on likely uses of GPLv3 63/14863/3
authorJohn L. Hammond <john.hammond@intel.com>
Tue, 19 May 2015 18:50:50 +0000 (13:50 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 25 May 2015 03:11:20 +0000 (03:11 +0000)
Add a warning to checkpatch.pl to warn on likely uses of GPLv3
headers.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I5fc48c9aa7495d949734db432b6a0b413379e99f
Reviewed-on: http://review.whamcloud.com/14863
Tested-by: Jenkins
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
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);
                }
                        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
        }
 
        # If we have no input at all, then there is nothing to report on