Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3940761pxj; Tue, 15 Jun 2021 11:53:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmtxg6Im+hyWJGRkWLNY7K3NeSEhdr8zi7pLu7LPtedQOxjLVOc+JUPA8uExnp9I6d5svz X-Received: by 2002:a17:907:e90:: with SMTP id ho16mr1113470ejc.410.1623783215777; Tue, 15 Jun 2021 11:53:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623783215; cv=none; d=google.com; s=arc-20160816; b=G34lNaUQwuJWvjydPAwhQgZ3vLBLYjk8FqtuAlEg77VGKlSHqYQ/y5wfTwIl6iLLlT Zi3IIEW2W0gGs5XLcAv6G3AINNac+g0+fhuP6FuEIf94W9zKxAt4oEQ8gl0lzeqP7vPq fUvRLlxBHWhtOH1SByy7U1zghXJMYjy+PPvA2bNFHYDspqJLfFpmN2NADOV/9jtNtD0m n5Q5ChuTgqhToIuMNWbf5T8Pam4yYJvSi1qIJ27mz5FKGOOQ2IIe20R4mUddT8eDhs2K CJBYGBR4QZAccMC/CndOSWYZuv2lNb6229DyW6wTkXqmT5FgfVeB5Iurywk539C+UzZC svdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=No2oPqsZrvr6CiRabUxNkxWZak+tZm7HbUK9/oBsRyk=; b=Sr9YvZz8yZNp9PADpmDwhBl/J12k/ugvSRl0dE+RQLth6ClcKrM/8fEsr3+bDbopNd S66TKmmepBGlRBPZI6RaUJ+YbAGZYf07lbxHcecIr3of35ysTQVvCAYG4q3NPuIJhvdJ XMVjMA4XO9ve5k7vWpui8j1TL+Va9fdidp9lL+2fVjegKsjrbikxvF25qjG0baoePzsY qNdLGIOV79wEs4QGTYYGBJfYTjrqmAxsNGWzvfXS/rbRHUDwI/GLCMv8437u7yip1zv9 2ixD93Xn4sgqU0Jde77lQXZi3yafe7tuRxnUNkT4/JAOxnJm4bV2JQYcxEy9X6zSg69y UWqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pbarker.dev header.s=fm1 header.b=K9lIIels; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Nho+0Qjk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ck28si15693181edb.315.2021.06.15.11.53.11; Tue, 15 Jun 2021 11:53:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@pbarker.dev header.s=fm1 header.b=K9lIIels; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Nho+0Qjk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230268AbhFOSyU (ORCPT + 99 others); Tue, 15 Jun 2021 14:54:20 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:45567 "EHLO wout2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230130AbhFOSyU (ORCPT ); Tue, 15 Jun 2021 14:54:20 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 17C5816C1; Tue, 15 Jun 2021 14:52:15 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 15 Jun 2021 14:52:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pbarker.dev; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm1; bh=No2oPqsZrvr6CiRabUxNkxWZak +tZm7HbUK9/oBsRyk=; b=K9lIIelszi8a/hegsYuPPKK0HlCQT8ULuR+lRSAYLq UJ0+U/dmUBfm8QInuwyvjmdmAu8xm6Jq45UA+b2OBD/STLLH9F3owz8HRAV+qq0s kiT6V4d29pUy1WuVqlcJabIQWy8LlI9UuV9fxRrutEf80vB+XXOrTJ12hycfB2pJ TRcsJG01EScpCfcF1a1l2lCGSBF9c+yhwVGJ8K5ZtJoaqdzsqBrGX4e6lzBv/bR5 qKM1tIqNlkgByC0Q1OrUJT8RJZwUpzjeIzxBjtgTb0U+Rh+QJWV4pIjlZRFDVmMV B7aBCkoXxKpQGFM5XLIIvD3czHVi4bkxrhquYi6NAuCQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=No2oPqsZrvr6CiRab UxNkxWZak+tZm7HbUK9/oBsRyk=; b=Nho+0Qjk4BjBEGDFxiMuIsO9Z+2Rxc/R+ 0aGchN7kQdggf8Z1Cf0fdR3T3c5vJ7aa53g9HiKAwU9nQKSZ/Ftrw9fb+G0Z60iS jw5LBFSxrGq8SU/iguTvXi8Tv2QI/i7iYatTxWpt6nQlKtOESp5Lv9UaomyiFQQl Id7JXkCVbi16xw/+fK63ZugRbICBCfxAHxIVbgu3LJEGRyFSYYSh04DhV3IsOWrQ 9jGTR0rBP+qO70uD/NChuizkGRKO7qXL60iLm7m0DIt+kfII4LD6ixWflcAgSCN7 ztpGzlOKGQN89RwyE/fhibX8XvgP2+c2TWF9049f/LeZ/hXnRcezQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedvjedgudefudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomheprfgruhhluceu rghrkhgvrhcuoehprghulhesphgsrghrkhgvrhdruggvvheqnecuggftrfgrthhtvghrnh epteefleelheeugeejudegiedttddvffdvleefgfdvudegkeduleegudeihfeijedunecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgruhhlse hpsggrrhhkvghrrdguvghv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 15 Jun 2021 14:52:13 -0400 (EDT) From: Paul Barker To: Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn , linux-kernel@vger.kernel.org Cc: Paul Barker Subject: [PATCH] checkpatch: Use python3 to run spdxcheck.py Date: Tue, 15 Jun 2021 19:52:06 +0100 Message-Id: <20210615185206.7701-1-paul@pbarker.dev> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit d0259c42abff ("spdxcheck.py: Use Python 3"), the shebang line in scripts/spdxcheck.py says the script should run with `python3`. However, checkpatch has been explicitly running this script with `python` so it needs updating to ensure that Python 3 is used on all distros. Signed-off-by: Paul Barker --- scripts/checkpatch.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 23697a6b1eaa..5e5e3a53461b 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1084,10 +1084,10 @@ sub is_maintained_obsolete { sub is_SPDX_License_valid { my ($license) = @_; - return 1 if (!$tree || which("python") eq "" || !(-e "$root/scripts/spdxcheck.py") || !(-e "$gitroot")); + return 1 if (!$tree || which("python3") eq "" || !(-e "$root/scripts/spdxcheck.py") || !(-e "$gitroot")); my $root_path = abs_path($root); - my $status = `cd "$root_path"; echo "$license" | python scripts/spdxcheck.py -`; + my $status = `cd "$root_path"; echo "$license" | python3 scripts/spdxcheck.py -`; return 0 if ($status ne ""); return 1; } -- 2.32.0