Commit 8d061278 authored by Peter Xu's avatar Peter Xu Committed by Paolo Bonzini
Browse files

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: default avatarPeter Xu <peterx@redhat.com>
Message-Id: <20190426062705.4651-1-peterx@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent cbe6d636
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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.