]> git.proxmox.com Git - mirror_qemu.git/blobdiff - scripts/checkpatch.pl
checkpatch: allow SPDX-License-Identifier
[mirror_qemu.git] / scripts / checkpatch.pl
index 88682cb0a9f324e0f56a00037d394fb548b59566..c2aaf421da32c3b8405e638666e8cba18745dbad 100755 (executable)
@@ -1949,7 +1949,8 @@ sub process {
                }
 
 # no C99 // comments
-               if ($line =~ m{//}) {
+               if ($line =~ m{//} &&
+                   $rawline !~ m{// SPDX-License-Identifier: }) {
                        ERROR("do not use C99 // comments\n" . $herecurr);
                }
                # Remove C99 comments.