Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4403404rwb; Mon, 31 Jul 2023 06:29:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlHJRn1PNFX7vb6MUuhnkpjrJN5m0ZHGZD8m45Ut96F81yb3uiNhsm0DJus+/BKooNj4IMI1 X-Received: by 2002:a05:6a20:d90b:b0:13d:c86b:d76d with SMTP id jd11-20020a056a20d90b00b0013dc86bd76dmr3126498pzb.60.1690810157600; Mon, 31 Jul 2023 06:29:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690810157; cv=none; d=google.com; s=arc-20160816; b=sXqPcTm48NxW+4IYh4eX4QvHMULdzBBdVvXy+WUW1OZBi59WILp4t2sHysEqNVuha8 +RzcX7D6NkRSSKvJsowW43M5t/ik6HJYtcj0xkG8SoGbjHSRBPaGpdw0W27JK1IKkixu cpFF+R8/DV9hfJNX+w7P6oMMSKHsGZpcs/lqYOQGphxGowbMyHUakbBUH9MwkqrGWNo5 h6qr3ybqm+GqhayPQfTxN51hDJA2Pd43a437YeU6v1FUHKgyJ65bHIOw5/MqIdAragsj BdZf4vijM6GMHx/nG4QevWZ88ZX8brEgf0oNAsnbz5JJxcYEtm/FwG66a1dEAq3muRS5 YHkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:from:date :dkim-signature; bh=Kw1GqrcBVbLFn90ZIl983v4IZbRnQolOvP8sC5KWoC4=; fh=mYNY7QUoTHWHjHVf8T8ftEObdo4YAzKS4ro8PLyswWA=; b=GE5Owh/8qFRSthDEjFyAcvQDDmsuTW8umChsjESRDFFuPMJnqbyYnc3o5jKNZ04T+I WC6b5zO8rlUozGTq93qtdVWJCVpbZh4ywfZweDTgqRa/tswLo1w2X9UPf45c+C5fNuQR rRR4RdO91uyJS/tquOn6C7SBNw6jCwHg/cET3sLJpU8euH+9FTiPAPGygJkew2uaQD6j //bC9MBLEhMd99lLAKePgNQEo6+kVYvYqhlSNQdVxdAS73um7JpduHSIUO+iXGMyXEry Ft3is0+/oVkzQLeJIr/yQEBnN6591+mEurGM26YnGyvufLn64Fgy3IFjGWcu5aQ2YJo2 fAZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nabijaczleweli.xyz header.s=202305 header.b=gDgkZC1S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nabijaczleweli.xyz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s1-20020a63dc01000000b0056427788d80si4187237pgg.653.2023.07.31.06.29.05; Mon, 31 Jul 2023 06:29:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nabijaczleweli.xyz header.s=202305 header.b=gDgkZC1S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nabijaczleweli.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232940AbjGaMrD (ORCPT + 99 others); Mon, 31 Jul 2023 08:47:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230332AbjGaMqo (ORCPT ); Mon, 31 Jul 2023 08:46:44 -0400 Received: from tarta.nabijaczleweli.xyz (unknown [139.28.40.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E1AD22128 for ; Mon, 31 Jul 2023 05:46:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nabijaczleweli.xyz; s=202305; t=1690807567; bh=gkt0rIqkUhHlExY4cS774r8mZa6RShIBQ5xwZJifOGA=; h=Date:From:Cc:Subject:References:In-Reply-To:From; b=gDgkZC1SHcBGjwdzSOrh14xZq6Rnem5ixqY9Au3dq9UYcY9Q+rOpTBYXAO+ysuwyI Fna5ExqvxpaKnV8YQ5eVY8ZZHW4KPJX7CfRnin1gvAucCx4grdoS3Gcw+aOPrcnIAR kNgClwbG2rddNifKf355pphKQfbeBdxNLJtLpAuqxANQBh2+ipvLrg+fO3m7QKeFN9 RuR8kZEuzQeIDxtvKcXVhqVphaD0ca7iwfVUTd03e9udOEGz4VhZKLN+w0xNIQ8NtL O6s2x2D0EUsNQV9NLEfmp+qaa+4VrTQkcE4pBA/QTZRbbO1AV5TGrij7rqguN8Dnmr iX/0WxxQmC+3g== Received: from tarta.nabijaczleweli.xyz (unknown [192.168.1.250]) by tarta.nabijaczleweli.xyz (Postfix) with ESMTPSA id 5ECE34C96; Mon, 31 Jul 2023 14:46:07 +0200 (CEST) Date: Mon, 31 Jul 2023 14:46:06 +0200 From: Ahelenia =?utf-8?Q?Ziemia=C5=84ska?= Cc: Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn , linux-kernel@vger.kernel.org Subject: [PATCH RESEND v2] checkpatch: don't take signature to be part of the commit SHA Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="zbb544vyg5m3kjn7" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20230517 X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MISSING_HEADERS, RCVD_IN_DNSWL_BLOCKED,RDNS_DYNAMIC,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --zbb544vyg5m3kjn7 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I had just received: $ scripts/checkpatch.pl 0001-splice-always-fsnotify_access-in-fsnotify_mo= dify-out.patch WARNING: Please use correct Fixes: style 'Fixes: <12 chars of sha1> ("")' - ie: 'Fixes: gpg: Signatu (":35 CEST")' #25: Fixes: 983652c69199 ("splice: report related fsnotify events") total: 0 errors, 1 warnings, 60 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inpl= ace. 0001-splice-always-fsnotify_access-in-fsnotify_modify-out.patch has style= problems, please review. NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. This fails when the Fixes:ed SHAs are signed, since the output is $ git log --format=3D'%H %s' gpg: Signature made Wed 28 Jun 2023 19:05:02 CEST gpg: using RSA key 7D69474E84028C5CC0C44163BCFD0B018D2658F1 gpg: Good signature from "=D0=BD=D0=B0=D0=B1 " [ultimate] gpg: aka "=D0=BD=D0=B0=D0=B1 " = [ultimate] gpg: aka "nabijaczleweli " [ult= imate] 53307062b2b644dc0de7bde916d6193492f37643 splice: fsnotify_access(in), fsn= otify_modify(out) on success in tee or $ git log --format=3D'%H %s' 983652c69199 gpg: Signature made Tue 04 Apr 2023 15:57:35 CEST gpg: using EDDSA key 408734571EA70C78B332692891C61BC06578D= CA2 gpg: Can't check signature: No public key 983652c691990b3257a07f67f4263eb847baa82d splice: report related fsnotify = events The fix mimics what was done in commit f24fb53984cf ("perf tools: Don't include signature in version strings"): just don't ask for the signatures being validated. With this, my patch passed validation. Signed-off-by: Ahelenia Ziemia=C5=84ska --- No-change rebase of v2. scripts/checkpatch.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 880fde13d9b8..734c7d4a4ac7 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -71,6 +71,7 @@ my $color =3D "auto"; my $allow_c99_comments =3D 1; # Can be overridden by --ignore C99_COMMENT_= TOLERANCE # git output parsing needs US English output, so first set backtick child = process LANGUAGE my $git_command =3D'export LANGUAGE=3Den_US.UTF-8; git'; +my $git_log_no =3D "--no-show-signature --no-color"; my $tabsize =3D 8; my ${CONFIG_} =3D "CONFIG_"; =20 @@ -1164,7 +1165,7 @@ sub seed_camelcase_includes { $camelcase_seeded =3D 1; =20 if (-e "$gitroot") { - my $git_last_include_commit =3D `${git_command} log --no-merges --pretty= =3Dformat:"%h%n" -1 -- include`; + my $git_last_include_commit =3D `${git_command} log ${git_log_no} --no-m= erges --pretty=3Dformat:"%h%n" -1 -- include`; chomp $git_last_include_commit; $camelcase_cache =3D ".checkpatch-camelcase.git.$git_last_include_commit= "; } else { @@ -1226,7 +1227,7 @@ sub git_commit_info { =20 return ($id, $desc) if ((which("git") eq "") || !(-e "$gitroot")); =20 - my $output =3D `${git_command} log --no-color --format=3D'%H %s' -1 $comm= it 2>&1`; + my $output =3D `${git_command} log ${git_log_no} --format=3D'%H %s' -1 $c= ommit 2>&1`; $output =3D~ s/^\s*//gm; my @lines =3D split("\n", $output); =20 @@ -1277,7 +1278,7 @@ if ($git) { } else { $git_range =3D "-1 $commit_expr"; } - my $lines =3D `${git_command} log --no-color --no-merges --pretty=3Dform= at:'%H %s' $git_range`; + my $lines =3D `${git_command} log ${git_log_no} --no-merges --pretty=3Df= ormat:'%H %s' $git_range`; foreach my $line (split(/\n/, $lines)) { $line =3D~ /^([0-9a-fA-F]{40,40}) (.*)$/; next if (!defined($1) || !defined($2)); --=20 2.39.2 --zbb544vyg5m3kjn7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEfWlHToQCjFzAxEFjvP0LAY0mWPEFAmTHrQ0ACgkQvP0LAY0m WPFSUw//QdKu5w48p2Xa5JYfsOGlZ3mcuCxXsap36cNjh06CZjahhMiS5/82Zmi3 e/D7x0jfL+rHltNU3O2Kx4k6fBJ71jttNM93b1JuPPt2bSpaz0PF9WdHaeu992xV gC59zAHFw3ypDk4ofqywF7IPSyrYU+FTyQ6ZR6kUz/nvO06gQfba5NwMWZq0QSqp mRhKDbcVxQkwRxDgqrLrh4A5hjbg50/ZPEOiAusb7awL9JRUbTg3fzIBV5qJA2WO fRUnsmJmBeTWkfnl7A1qM11rPj6d45wbO+nq5W30UwwUvtDvAhXdDEuRN7oXbuuE GjlPQRzGoe0vXP15cLzVWBNxfc5HM+qp696GBcns0AWPCSVKBBTebWkIJ/P3hCsx FztZQrKcV+5U068t47gmOHwASeRGPTAz9Dbf/UmPYRgq8WSbISMNdHFtf5EF4J/V CegN6h0KSf1Mnh+L4BFT7c4PZoLJBkQioZ7MQ/lbDTAVKRAJjL7c9tNSAGukg1Sc GTT/HUcFF1Z/Uk8msQWO9uduRRDspMe0SwOlb7DTC0sRpWsSdNRD0tpGmv/CQ/jE 0N9bdR41j4PCVwX5eHJrXjo1EqYnH29PJaH33qcZ9k/SPRMQ9KCusysgioGhNaT3 5p3K53sLpMxXdqNL3+IJJKPJgYZP2U+WkW39YV7353LN042RP04= =ZFNB -----END PGP SIGNATURE----- --zbb544vyg5m3kjn7--