From: Daniel P. Berrangé Date: Wed, 21 May 2025 08:47:00 +0000 (+0100) Subject: scripts/checkpatch.pl: mandate SPDX tag for Rust src files X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=81941aa896b718c194f08cebb4303561b64c60b4;p=thirdparty%2Fqemu.git scripts/checkpatch.pl: mandate SPDX tag for Rust src files Reviewed-by: Manos Pitsidianakis Signed-off-by: Daniel P. Berrangé --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 9291bc9209..833f20f555 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1499,7 +1499,7 @@ sub process_end_of_file { if ($fileinfo->{action} eq "new" && !exists $fileinfo->{facts}->{sawspdx}) { if ($fileinfo->{filenew} =~ - /(\.(c|h|py|pl|sh|json|inc)|Makefile.*)$/) { + /(\.(c|h|py|pl|sh|json|inc|rs)|Makefile.*)$/) { # source code files MUST have SPDX license declared ERROR("New file '" . $fileinfo->{filenew} . "' requires 'SPDX-License-Identifier'");