On Wed, May 21, 2025 at 12:06 PM Daniel P. Berrangé <berra...@redhat.com> wrote: > > Signed-off-by: Daniel P. Berrangé <berra...@redhat.com> > --- > scripts/checkpatch.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index 17b8db40ad..c0b36a85cd 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'"); > -- > 2.49.0 >
Reviewed-by: Manos Pitsidianakis <manos.pitsidiana...@linaro.org>