diff options
| author | Jiri Kosina <jkosina@suse.com> | 2026-06-16 22:47:16 +0300 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2026-06-16 22:47:16 +0300 |
| commit | aa776949fb77462ee712eee28bc54a9ce95c5b40 (patch) | |
| tree | 389848f195054d64ac6fc137a2218e0a63655288 /scripts/checkpatch.pl | |
| parent | 6df6b1f2c49678211f65647c300bc51dda02893b (diff) | |
| parent | 12b7731995ca577d86e02196e99ba9c126f47282 (diff) | |
| download | linux-aa776949fb77462ee712eee28bc54a9ce95c5b40.tar.xz | |
Merge branch 'for-7.2/wiimote' into for-linus
Diffstat (limited to 'scripts/checkpatch.pl')
| -rwxr-xr-x | scripts/checkpatch.pl | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 7e612d3e2c1a..0492d6afc9a1 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2929,7 +2929,7 @@ sub process { } $checklicenseline = 1; - if ($realfile !~ /^MAINTAINERS/) { + if ($realfile !~ /^(MAINTAINERS|dev\/null)/) { my $last_binding_patch = $is_binding_patch; $is_binding_patch = () = $realfile =~ m@^(?:Documentation/devicetree/|include/dt-bindings/)@; @@ -3866,6 +3866,14 @@ sub process { "Misplaced SPDX-License-Identifier tag - use line $checklicenseline instead\n" . $herecurr); } +# check for disallowed SPDX file tags + if ($rawline =~ /\bSPDX-.*:/ && + $rawline !~ /\bSPDX-License-Identifier:/ && + $rawline !~ /\bSPDX-FileCopyrightText:/) { + WARN("SPDX_LICENSE_TAG", + "Disallowed SPDX tag\n" . $herecurr); + } + # line length limit (with some exclusions) # # There are a few types of lines that may extend beyond $max_line_length: |
