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: 459025 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=-18.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable 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 88662C48BE5 for ; Thu, 10 Jun 2021 21:45:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 723156142D for ; Thu, 10 Jun 2021 21:45:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231284AbhFJVrc (ORCPT ); Thu, 10 Jun 2021 17:47:32 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:33844 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231290AbhFJVrX (ORCPT ); Thu, 10 Jun 2021 17:47:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623361526; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ViPuuVG2OqeHFqV52axiUAscOGrI/FqROmXXJfWF5s0=; b=VHHj7JjwQvXeSwEguEQvikIAA397PeoHb/8QYPC9DPhXHcg1SKEJ2CEn/3VhoGoS8jc7Y9 aZBG0N75L39rJVY4udu6lNjCAZxnbED/3SQ+Noau2U7MSkkjvlg9wQHcX4b8xB6USSzD4a DRInDhepfnZZLg3wZI0TNkeZP6XD98A= Received: from mail-ot1-f69.google.com (mail-ot1-f69.google.com [209.85.210.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-554-mfSQgxq1OcSIfpbQK_4CRw-1; Thu, 10 Jun 2021 17:45:25 -0400 X-MC-Unique: mfSQgxq1OcSIfpbQK_4CRw-1 Received: by mail-ot1-f69.google.com with SMTP id e16-20020a0568302010b02903feaaa5cf10so667205otp.8 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=gznpnqDeWeHjviHNfHpOlxodOviVmzb8ZJ15VpR1beWoaZXOBTdH6wM8OQu2+jkig3 1hFL+oRGpsmfPOiM5WJrBA6LLu3hd5kVXZbRqoTq1vQB8I7E5k1a69izi06S+Y9J+QNI Aq7SvHN5rZ6mG7MmHnoSTcOaaSGhAmuhKUu8BSWFmp5MJyFbGrExWTUZsMtWnUMXrUAb yeEfJhFbwjzQkyL175vSkSER7j4SDKsjgmhff+PNZ5uPOo45TjIqsmdxfd3RXitJYzgM dKq7Qo25aesv/jRU2ZGk3SxbLRTbYiOxGcJAfQlJTI14Tt7FtjvDpi7/DmineomAZeES SbOg== X-Gm-Message-State: AOAM532OmC6XyNnO5SsmzFrMb/+awVZyTHyLqE1xpIqZeINi7DoFPGtZ LJ9eCebKDBw9WeITeUSf14XDg+Ouyfxbu4OjDc/aXYyDfd00tm9VUKVXna/a038jajX0Henzjo9 /pabtVy2XOxRW0DlJ X-Received: by 2002:a4a:1145:: with SMTP id 66mr522753ooc.14.1623361524883; 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 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.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 = '..';