Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26340894rwd; Mon, 3 Jul 2023 08:24:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlEC7qlWhhLVqwzimkG501OfEQSZ7bm1CoBF2UDF5WAzygbW/8qXLL+E55hIiOALhh2Doma1 X-Received: by 2002:a17:90a:189:b0:25f:982:2d73 with SMTP id 9-20020a17090a018900b0025f09822d73mr8772835pjc.15.1688397881794; Mon, 03 Jul 2023 08:24:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688397881; cv=none; d=google.com; s=arc-20160816; b=uFV96aMwBg41xUe8Qxb1YQhEyoRA3pwNUuNR9tOd13qmJvRJX9GknJNgXkQPL9H4WQ L7zWjyEfGTG0eGafcsBQrl39S6Xn+nCQNnTEQH44vbhiLrG7bq5O/1ehqy7MPSLj7zKk GLHUrqofz/c6i+f8Z9KCrhinqthJYNHfZxKH+RNrp5rSpfQUnI4qUVpPdHXnRzxcHrzH 8jvwzWTrd1iHHu7ZkNklwhg4RhnrX83dagInaFKnEdpbKg6y/E9qm4P/mpDQZbF4IeUm r9kgj7b7A9eh35tfSPJrpKSbnzWyyP7OaCuyLse4X78oEHFPztHA1rPa27yDVWAZ+vid V6HA== 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=sfWno+Yur6BC1TgSDennmlYEuiPancshSOLIi+vLscU=; fh=QVxo2ObgfsiVuvJWmZPugXHJRPYKCWtM1Zw/9d2D0P0=; b=q+5+A4cOIZ+kLyOuaaHjZZf96t2usRqMcL+p+ff4XPsS0ckv1+Xo1nHRUXdcAOUUtH 5DpeK5L9gPw0Ygx/pp58uyOTa9N61daiIsVxvvHKPKqS4UU123qoIPrX3DdjmPu4tW+C cOGFtmIhVK8b8rTc8lmng1spYTNjtmutgG1TiqgnIpJEKfEB5xp33lrm2uXTRmAhtkKV 30hu7brIpY2UG5B8IZJtztmW5G63Bi7F5xIPQbNBRV9CGW3mzZcP8ZFRetSA4bS/9C9U WsRYOURa5+eBFRjAmG3RMgbEZxwm6VtuC1xRmRPKmcuyUa53vBbokvJy/Bp8MgPWG3sw 6/Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nabijaczleweli.xyz header.s=202305 header.b="qe/bkuHb"; 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 nv9-20020a17090b1b4900b00262f30ae90asi17091043pjb.118.2023.07.03.08.24.11; Mon, 03 Jul 2023 08:24:41 -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="qe/bkuHb"; 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 S229818AbjGCOwC (ORCPT + 99 others); Mon, 3 Jul 2023 10:52:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbjGCOwA (ORCPT ); Mon, 3 Jul 2023 10:52:00 -0400 Received: from tarta.nabijaczleweli.xyz (unknown [139.28.40.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A49CD10E for ; Mon, 3 Jul 2023 07:51:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nabijaczleweli.xyz; s=202305; t=1688395919; bh=9Fz8rU9GmTaxOPVMlac3r3BzwGUKuWGirTJMgrIhhp8=; h=Date:From:Cc:Subject:References:In-Reply-To:From; b=qe/bkuHbreHbm5lBsGJY6UMo8PLqxKWw24r3kGoS+9hbmR4YdVV5A5FiyxQ0RLIcp /CpJt41YsBnTutOg8qjuQYm8VZLqSExsw/4Weaw/M8oYI6hkfDwoKqCm6Sb/3R+trg Ags6bFTETucJ4Avf+EJTXWHMX5zswzUHg/O2s0soV2BOVd/6jD/N3gq59mca8awwnt 07QWbBJDjhnW3bFwqUwF4UgNRqsbbWnkkHh3AY/2JTKlUTdORkIhJg0+lXJhMmk9i7 HSpGy5vN/0Bf+Y+6WPFtivA3ZC9X3o5Etj0lAtmcx/qUD/0jWggRQazbzkQP4Rcpu8 u/c6d/sGb6FFg== Received: from tarta.nabijaczleweli.xyz (unknown [192.168.1.250]) by tarta.nabijaczleweli.xyz (Postfix) with ESMTPSA id E89E51EBA; Mon, 3 Jul 2023 16:51:58 +0200 (CEST) Date: Mon, 3 Jul 2023 16:51:57 +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 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="3hdjimvrirjnjqby" 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, PDS_RDNS_DYNAMIC_FP,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 --3hdjimvrirjnjqby 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 --- scripts/checkpatch.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index b30114d637c4..1ff2c9835245 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 --3hdjimvrirjnjqby Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEfWlHToQCjFzAxEFjvP0LAY0mWPEFAmSi4I0ACgkQvP0LAY0m WPFCnxAAoyoVHV4TC1a9oR3O/QR36FVHOFHFLPOepDaWKS00oMXGGWP82MzKohUj fvsDabeIxlfjwRrVpRlMrqmJog0+gHUoTr2ppIPRy2PDz3LZXBn2yZP+Zh51lgdz TThGdwnwR6q0lCjIxBYTsfjupj+uU+37hp7Zo19H6Ejrb7Uf8U4gCHu1fI+Zg7MV DORdKDiS7eSMsW7k2Hsv0MoVqfgMpyROWc7txHJdq3KVWetuB8AuNv9pCr5bVZpY avcK9CqqgUuVoIyRqVqL3i6b55hS/y5A5Xo4MHgjQ2x25H5xcbBtEI7MeCLEIe1n OC0+13LVOsPhPN+HbVqDEZidzilj0wDQ029K6ZXRuWjC2t9fMQfyXPWSDlZ+QV6k K74mHNTNTNg2tVMWXcpzOe3HyPKYyvbzAdcU+Oqa/Oytrkdo3fPnLj+6Bs8yW+nh xVpN8kYx7Ug3cNUX2f4DNYLUBnNzOGbBDm40kQQ4fQnSxvq82AqzajDuSYik014b HXNZSd+bNt3rNZa+rpPR+/6Vm87qjcFqVm/NHJQlXgn7pdIlMGR+42i1X38/aem1 8OxJcB15owMhTxbYe1fEByA5sC2+hN+6vY1Oz6wraYyip3j/oxk5PH3mH1b2epG1 gVgAOCxEyc6AD0Gdbde9id+Z9EI3yAVlFI+y5XDMjirVok7T9mU= =IU9O -----END PGP SIGNATURE----- --3hdjimvrirjnjqby--