summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/checkpatch.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/checkpatch.pl b/tools/checkpatch.pl
index 69eb0ef954..b5892e8da5 100755
--- a/tools/checkpatch.pl
+++ b/tools/checkpatch.pl
@@ -3627,7 +3627,9 @@ sub process {
# no C99 // comments
if ($line =~ m{//}) {
- if (!$allow_c99_comments) {
+ if ($rawlines[$linenr - 1] =~ /SPDX-License-Identifier:/) {
+ # ignore
+ } elsif (!$allow_c99_comments) {
if(ERROR("C99_COMMENTS",
"do not use C99 // comments\n" . $herecurr) &&
$fix) {