We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44d303e commit 50c9290Copy full SHA for 50c9290
scripts/checkpatch.pl
@@ -3157,6 +3157,17 @@ sub process {
3157
WARN("SPDX_LICENSE_TAG",
3158
"'$spdx_license' is not supported in LICENSES/...\n" . $herecurr);
3159
}
3160
+ if ($realfile =~ m@^Documentation/devicetree/bindings/@ &&
3161
+ not $spdx_license =~ /GPL-2\.0.*BSD-2-Clause/) {
3162
+ my $msg_level = \&WARN;
3163
+ $msg_level = \&CHK if ($file);
3164
+ if (&{$msg_level}("SPDX_LICENSE_TAG",
3165
+
3166
+ "DT binding documents should be licensed (GPL-2.0-only OR BSD-2-Clause)\n" . $herecurr) &&
3167
+ $fix) {
3168
+ $fixed[$fixlinenr] =~ s/SPDX-License-Identifier: .*/SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)/;
3169
+ }
3170
3171
3172
3173
0 commit comments