Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20165298rwd; Wed, 28 Jun 2023 21:26:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6CM/apFan/KxF3six48CbRdpvCijLWSqRUrBjiYPeckFVoZlJQJIKOmrD1prFeVT34UBoK X-Received: by 2002:a05:6358:e92f:b0:133:7f9:303f with SMTP id gk47-20020a056358e92f00b0013307f9303fmr10174387rwb.23.1688012786863; Wed, 28 Jun 2023 21:26:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688012786; cv=none; d=google.com; s=arc-20160816; b=uzITkIKMV27hGDSqgjB8I37pkyEZetokZ+dvc1KYuAERN+H5UcDnuPYt8a5DwA1K1M QHAaheV6IlfV9pN1ugHT1QDjWEq8BItGCSnCWY46rABnmOz/GmLPuYZEWqJJi/8Nz8CF C1KnFAC7SfSuGHcDlgqBqWLbej6ZPo+vQiDKoO/qMkaekvAO1WGLWq3R+3AHx6MBgkKX KwF2aCd0mZoOgu0t2Ev/KDAGyDiR2aFBMmqioERM4olNhSLD7T7TNof8owCVs97qlOCG NpoUeiN0nWDNmajCvTOPX6BUvsUCy3T+jC1WbSet0KX0ujvK+kt9YnW+zzwAt9GOolK3 qygg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=D2oBBgISKsmNP3/pLg+fsli69kxo0CS5hRB6SFIptNA=; fh=eNEM1vuP3Tfk2DBE0s6Mf9gEP4el/mV0NcUXTj/hW/E=; b=DdNWG51dw5CK3IAwtXCppccF6jreU/X1+38M3jiTF2rfAlRVu0aRdjXaYv4+Zo/Xxy UmaktgU8Ii4CVy8w4WLtITfwllrLYmVnAiB4iNduqSzFWmHVOppFZTQgSKf3Zh1Co1yP LHv53hqx1fqJK2m1UIFTdvm6xLRR10PJGid5XN6hPASRVFyt09k+d6C11rX+/7ecopDR kHUp/oWMBTieJY0Jt2wgS7O2HZBr36gZRC5fHbvcbXw6IJcWN0sorlYFz+Sl/T/kH8Da QaHSfhInNajGxomGctFK3HkdRnWRS2o3rtWoGXz3j7Oz7Yv3fAppagnZPwcHI58YxwS4 /3Og== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q191-20020a632ac8000000b0055af2b13191si5488809pgq.478.2023.06.28.21.26.05; Wed, 28 Jun 2023 21:26:26 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231154AbjF2ELO convert rfc822-to-8bit (ORCPT + 99 others); Thu, 29 Jun 2023 00:11:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230293AbjF2ELI (ORCPT ); Thu, 29 Jun 2023 00:11:08 -0400 Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 445D9B1 for ; Wed, 28 Jun 2023 21:11:06 -0700 (PDT) Received: from omf05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 0D1651C8DAA; Thu, 29 Jun 2023 04:11:04 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf05.hostedemail.com (Postfix) with ESMTPA id BAFE92000D; Thu, 29 Jun 2023 04:11:01 +0000 (UTC) Message-ID: Subject: Re: [PATCH] checkpatch: don't take signature to be part of the commit SHA From: Joe Perches To: Ahelenia =?UTF-8?Q?Ziemia=C5=84ska?= Cc: Andy Whitcroft , Dwaipayan Ray , Lukas Bulwahn , linux-kernel@vger.kernel.org Date: Wed, 28 Jun 2023 21:11:00 -0700 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.48.3 (3.48.3-1.fc38) MIME-Version: 1.0 X-Stat-Signature: 3cz7mb43i4y1qh5szigsippx7cnmm958 X-Rspamd-Server: rspamout04 X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Rspamd-Queue-Id: BAFE92000D X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1+TmBqH45dMurvUt3xbkP2O1TaJ4wxIEjg= X-HE-Tag: 1688011861-732657 X-HE-Meta: U2FsdGVkX19tvomSc1t9wH2618i9NNLu/pXHB7veTLtOKv/rJuTlkSOZMn24f6pW2XmKrliIoYAqP0bg4R94jvpqakiJIRTxi0NdS1TrDvUQBu63qsgzsse0DAwxOt/VwqUU9fc1tMEvOAMthxq0bE5JL9fF2TSuFv/UhCuIeRJXxA2jey30B3crINkL7JXSgsiez94Z9ktY2RPQKe696Tu3vU8uDIELu8njjkzzakPsHe++WcVGijrEWaJT6Vx9hLWmWMrqZPT7PEU9l+cFM6+EXJU+/Yf5VrMt6m15UI3LqxxLFSUfnSc24j5l7HkPt8EzO15wseao8ahNFmDfVrZE4IR2LPWK/NvJy0/S0Fk4BAQxZDQsfaQWdI/UveELBE88SRyjWPivl+unPHsJ/h3KowOi5XOt+AqWoWn4cTB0apiD0B0OByTs8OetubNBSrdco2Vd4NPAORb8Qv/IeQ== X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2023-06-28 at 22:35 +0200, Ahelenia Ziemiańska wrote: > I had just received: > $ scripts/checkpatch.pl 0001-splice-always-fsnotify_access-in-fsnotify_modify-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-inplace. > > 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='%H %s' > gpg: Signature made Wed 28 Jun 2023 19:05:02 CEST > gpg: using RSA key 7D69474E84028C5CC0C44163BCFD0B018D2658F1 > gpg: Good signature from "наб <nabijaczleweli@nabijaczleweli.xyz>" [ultimate] > gpg: aka "наб <nabijaczleweli@gmail.com>" [ultimate] > gpg: aka "nabijaczleweli <nabijaczleweli@gmail.com>" [ultimate] > 53307062b2b644dc0de7bde916d6193492f37643 splice: fsnotify_access(in), fsnotify_modify(out) on success in tee > or > $ git log --format='%H %s' 983652c69199 > gpg: Signature made Tue 04 Apr 2023 15:57:35 CEST > gpg: using EDDSA key 408734571EA70C78B332692891C61BC06578DCA2 > gpg: Can't check signature: No public key > 983652c691990b3257a07f67f4263eb847baa82d splice: report related fsnotify events > > The fix mimicks what was done in commit f24fb53984cf ("perf tools: Don't mimics > 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ńska <nabijaczleweli@nabijaczleweli.xyz> > --- > Grepped through for /log /, /show /, and /git_command/, and this > is all I found. Unsure if there's other git executions that need > to be fixed, tho. Not sure either but perhaps these should be in some negative options variable like: my $git_log_no = "--no-show-signature --no-merges --no-color"; > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl [] > @@ -1164,7 +1164,7 @@ sub seed_camelcase_includes { > $camelcase_seeded = 1; > > if (-e "$gitroot") { > - my $git_last_include_commit = `${git_command} log --no-merges --pretty=format:"%h%n" -1 -- include`; > + my $git_last_include_commit = `${git_command} log --no-show-signature --no-merges --pretty=format:"%h%n" -1 -- include`; my $git_last_include_commit = `${git_command} log ${git_log_no} --pretty=... etc...