From patchwork Thu Jun 10 21:44:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 12314141 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D12B8C48BDF for ; Thu, 10 Jun 2021 21:49:57 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9A181611CD for ; Thu, 10 Jun 2021 21:49:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9A181611CD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=U8/nwTd7fJpJfvi4rRWf+1Z9a2aCjfO4M8N472NwudE=; b=CfxTnVb0UgxyTy oiwW2AWcLOhmoNuNqCpBHNQT2MCRNDJHHoNy4xQojvat1+nBuwR7UZREFQGXV5M860ccdd8iPA5vU ybEhh0JlOCbD1rHFsR4LI296qK//oqnVSNf4TNS9LYYIQKzFsBI3SOGLh4dhJwUSmUH81Fy1UZkP9 BEP7QFGfZORRhAM7rIqtWOvcle9zqcgH4oPduPxL8fGcBW3EKw8HG2X+o+nLV+kNWwTHPDYEFiZ51 yQKlSmzARyrtpnYxue9i+TnOllaD/v18U2mLuONW6Yb9H2fhbckYCE5yPQzSr3tFs6boEePM5VQc9 th78WdsixPft0UjCYcRg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lrSWW-002b3c-EC; Thu, 10 Jun 2021 21:47:36 +0000 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lrSUS-002aAs-0E for linux-arm-kernel@lists.infradead.org; Thu, 10 Jun 2021 21:45:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623361527; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ViPuuVG2OqeHFqV52axiUAscOGrI/FqROmXXJfWF5s0=; b=HMovLtbVw9RmF8IncGTNX5D9VPHbSDd87kuNEnbJKi7flM35zv/BFKz3e6Cs1548QRF+Al wVQVyUjVEY18nBMSo/zXURvnmGyjWX85n2dRoIY5A7sbJBhUKjRv526V0RS4bexwqzVLQi Rgn5VeEbxqAMb1dXM9AkZk9Z4YAqqBM= Received: from mail-ot1-f72.google.com (mail-ot1-f72.google.com [209.85.210.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-527-PAPq49xoOImMmP-RAVxidw-1; Thu, 10 Jun 2021 17:45:26 -0400 X-MC-Unique: PAPq49xoOImMmP-RAVxidw-1 Received: by mail-ot1-f72.google.com with SMTP id q20-20020a9d7c940000b02903f5a4101f8eso651921otn.17 for ; Thu, 10 Jun 2021 14:45:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ViPuuVG2OqeHFqV52axiUAscOGrI/FqROmXXJfWF5s0=; b=ARVUsCL1yIBilN+ezVhJ41QUc9tGNJHToZILVy140xtiR7TzqarpHmPyipZhkgp7v3 win6pS+eRKd0KViVXcMHzEetWfYU/KojD0dgV2cMtG+RTG9+yY/KQrAUEikoXcfTQ6Kd gMN5BJXRuZTRy/2urBgP0bYR1ZI4ResSz29BRv/dw8jZq7U8t5X9f0hUvKkklmxwg00t 6ibG65xs/PbI00nvOEe5mbQI1K3CjJkZuCZ8NAMkl58aTJWGLO6QdcOrlOsBZ0B7/icJ sqOt/1tui1TSKYpiw6DdxgE21r+SVANldqAA2AVs3zbSU2nZMYuTMo93Zpr+ZnwfIfg6 s8kA== X-Gm-Message-State: AOAM530P0uBxNMSqH2BbHOR874y1Jf8rOYztAxSc6ASyrN5ku9yCKzl6 9bmB5ppoPaZqwvHaNc73OKwBQY7O5cdc+Pf2Yaktiu28b97VhZlR0PvsMZti3YdB7ziOC7l95Mg ejzyGMTL7D9WSoBpJwlIS5u5sHontZ1HLM+A= X-Received: by 2002:a4a:1145:: with SMTP id 66mr522769ooc.14.1623361524976; Thu, 10 Jun 2021 14:45:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMoOE2fXWndbKi6EkTffFwfztc6UDDB9ZibLraP0UKVrXK7cwIRfO3Zax6Rh3Y2+SPIntMDQ== X-Received: by 2002:a4a:1145:: with SMTP id 66mr522721ooc.14.1623361524719; Thu, 10 Jun 2021 14:45:24 -0700 (PDT) Received: from localhost.localdomain.com (075-142-250-213.res.spectrum.com. [75.142.250.213]) by smtp.gmail.com with ESMTPSA id i15sm881839ots.39.2021.06.10.14.45.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Jun 2021 14:45:24 -0700 (PDT) From: trix@redhat.com To: robh+dt@kernel.org, tsbogend@alpha.franken.de, jic23@kernel.org, lars@metafoo.de, tomas.winkler@intel.com, arnd@arndb.de, gregkh@linuxfoundation.org, nbd@nbd.name, lorenzo.bianconi83@gmail.com, ryder.lee@mediatek.com, kvalo@codeaurora.org, davem@davemloft.net, kuba@kernel.org, matthias.bgg@gmail.com, mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com, apw@canonical.com, joe@perches.com, dwaipayanray1@gmail.com, lukas.bulwahn@gmail.com, chenhuacai@kernel.org, jiaxun.yang@flygoat.com, zhangqing@loongson.cn, jbhayana@google.com, sean.wang@mediatek.com, shayne.chen@mediatek.com, Soul.Huang@mediatek.com, shorne@gmail.com, gsomlo@gmail.com, pczarnecki@internships.antmicro.com, mholenko@antmicro.com, davidgow@google.com Cc: devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, Tom Rix Subject: [PATCH 1/7] checkpatch: check Makefiles and Kconfigs for SPDX tag Date: Thu, 10 Jun 2021 14:44:32 -0700 Message-Id: <20210610214438.3161140-3-trix@redhat.com> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210610214438.3161140-1-trix@redhat.com> References: <20210610214438.3161140-1-trix@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=trix@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210610_144528_160508_3515B6A8 X-CRM114-Status: GOOD ( 11.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Tom Rix 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 --- 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 = '..';