[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210610214438.3161140-3-trix@redhat.com>
Date: Thu, 10 Jun 2021 14:44:32 -0700
From: trix@...hat.com
To: robh+dt@...nel.org, tsbogend@...ha.franken.de, jic23@...nel.org,
lars@...afoo.de, tomas.winkler@...el.com, arnd@...db.de,
gregkh@...uxfoundation.org, nbd@....name,
lorenzo.bianconi83@...il.com, ryder.lee@...iatek.com,
kvalo@...eaurora.org, davem@...emloft.net, kuba@...nel.org,
matthias.bgg@...il.com, mcoquelin.stm32@...il.com,
alexandre.torgue@...s.st.com, apw@...onical.com, joe@...ches.com,
dwaipayanray1@...il.com, lukas.bulwahn@...il.com,
chenhuacai@...nel.org, jiaxun.yang@...goat.com,
zhangqing@...ngson.cn, jbhayana@...gle.com, sean.wang@...iatek.com,
shayne.chen@...iatek.com, Soul.Huang@...iatek.com,
shorne@...il.com, gsomlo@...il.com,
pczarnecki@...ernships.antmicro.com, mholenko@...micro.com,
davidgow@...gle.com
Cc: devicetree@...r.kernel.org, linux-mips@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-iio@...r.kernel.org,
linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org,
linux-stm32@...md-mailman.stormreply.com, Tom Rix <trix@...hat.com>
Subject: [PATCH 1/7] checkpatch: check Makefiles and Kconfigs for SPDX tag
From: Tom Rix <trix@...hat.com>
Both Makefiles and Kconfigs should carry an SPDX tag.
Something like
# SPDX-License-Identifier: GPL-2.0-only
Add a matcher to existing check
Signed-off-by: Tom Rix <trix@...hat.com>
---
scripts/checkpatch.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index dad87c3686326..7fca3a7c38791 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -3572,7 +3572,7 @@ sub process {
$comment = '/*';
} elsif ($realfile =~ /\.(c|dts|dtsi)$/) {
$comment = '//';
- } elsif (($checklicenseline == 2) || $realfile =~ /\.(sh|pl|py|awk|tc|yaml)$/) {
+ } elsif (($checklicenseline == 2) || $realfile =~ /\.(sh|pl|py|awk|tc|yaml)$|Kconfig|Makefile/) {
$comment = '#';
} elsif ($realfile =~ /\.rst$/) {
$comment = '..';
--
2.26.3
Powered by blists - more mailing lists