checkpatch: allow SPDX-License-Identifier

According to: https://spdx.org/ids-how, let's still allow QEMU to use
the SPDX license identifier:

// SPDX-License-Identifier: ***

CC: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20190426062705.4651-1-peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Peter Xu 2019-04-26 14:27:05 +08:00 committed by Paolo Bonzini
parent cbe6d6365a
commit 8d061278d3
1 changed files with 2 additions and 1 deletions

View File

@ -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.