Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp3765483rwn; Sat, 10 Sep 2022 20:26:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR6bGx8k2ba/v/RppgC8CL3N6wQ5NhfY42qzB5rC1+iUALaVlQISWG/PNgQVD51o4PC5Oqtm X-Received: by 2002:a17:907:72cd:b0:741:905e:9150 with SMTP id du13-20020a17090772cd00b00741905e9150mr14590402ejc.88.1662866768066; Sat, 10 Sep 2022 20:26:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662866768; cv=none; d=google.com; s=arc-20160816; b=xqKDDXbs0ErP+yvkfkTOiqWdpnO/m7YMLlqr8m8iWqui8VwQuW6gXs8l9JIW+pZE/O n+KrSIjn3lxUTgmHHp5pwxoxz6VG2fdmE3NiaPKDVuYH8fL0yh9q/IZnK4QakqO5FjCy i1GU0c4hB0dfZgXz93VPJG2TOCUqf1nUGpEo/MdjV/BidVB1G9THj4zkTG/wjahJhJj/ aVMLcxxj+5/rWHq8APskIkJAai0z6ax55fqJjhInteXN4RZyUElZIGXpb649Ud0cRrTW S3sZjoIwZwrk2yQxMltRQCD4adMssFkdNLF57jiQRjNsFoPaZXFWnW/QR/JKZHOCadIc R8/Q== 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=v4lWrd1ZRr/Y813yNNscBTGBVI5LCm0ynHuoaE/K+u8=; b=AMtMgJtiUsI/tIKUQteSQcZtxoGDuVivLePM9Kxr/Fy1Uy/sX7aezit4lHN/F5HdHJ s0BSMoqwQJ3TZtXPW3FXRVDcwop1a3fEnFWspze04gkTHu9kb2Nt47Rl7G5b4e65fwaN oh8L64CR1M9zgnCecTgNOUjogg1k1VqIGVE+k+Zn8nY9qjBKyVsXe6NsREgHkMZqwLiX V9gZa8dPe2O1nJnjGuAd5uQZ/TShxxh82hMNyYQr/eXO2i/KQyqanHm11Xfrbpkwjf9P lEkHO710htWqJ67oV0z3qrh5yJjaZcrC2ddqo9gORmH+9hrB6ZN/KQ7ijS/7K7hMeFSF Kxew== 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 c25-20020a170906155900b00779a69067afsi3677163ejd.830.2022.09.10.20.25.43; Sat, 10 Sep 2022 20:26:08 -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 S229760AbiIKCsK convert rfc822-to-8bit (ORCPT + 99 others); Sat, 10 Sep 2022 22:48:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229589AbiIKCsH (ORCPT ); Sat, 10 Sep 2022 22:48:07 -0400 Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E642438457; Sat, 10 Sep 2022 19:48:03 -0700 (PDT) Received: from omf15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 9961580615; Sun, 11 Sep 2022 02:48:01 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf15.hostedemail.com (Postfix) with ESMTPA id AEBEC1A; Sun, 11 Sep 2022 02:47:59 +0000 (UTC) Message-ID: <2febb7893346b6234983453de7c037536e479bfc.camel@perches.com> Subject: Re: [PATCH v4] checkpatch: warn for non-standard fixes tag style From: Joe Perches To: "niklas.soderlund@corigine.com" , Philippe Schenker Cc: "corbet@lwn.net" , "dwaipayanray1@gmail.com" , "linux-kernel@vger.kernel.org" , "linux-doc@vger.kernel.org" , "lukas.bulwahn@gmail.com" , "apw@canonical.com" , "sfr@canb.auug.org.au" , "louis.peens@corigine.com" , "simon.horman@corigine.com" , "oss-drivers@corigine.com" Date: Sat, 10 Sep 2022 19:47:57 -0700 In-Reply-To: <9f9a0740aef282d30af8fa02ca7c6479e80aa9a0.camel@perches.com> References: <20220908164434.122106-1-niklas.soderlund@corigine.com> <3275d886491dc934e3277cde9cc766b0ce0886ea.camel@toradex.com> <9f9a0740aef282d30af8fa02ca7c6479e80aa9a0.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.4 (3.44.4-1.fc36) MIME-Version: 1.0 X-Rspamd-Queue-Id: AEBEC1A 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-Stat-Signature: h13yutk9y9wri4g3qzr51mwk4xcmonzs X-Rspamd-Server: rspamout02 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX19n7kE87D4jQzH7pcA7dlomOJhrJqeZPSk= X-HE-Tag: 1662864479-88451 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 Fri, 2022-09-09 at 10:57 -0700, Joe Perches wrote: > On Fri, 2022-09-09 at 09:40 +0200, niklas.soderlund@corigine.com wrote: > > On 2022-09-08 17:49:14 +0000, Philippe Schenker wrote: [] > > > I would check all lines that start with fixes, even if there is > > > whitespace in front (and then failing later on...) > > > > > > if (!$in_header_lines && $line =~ /^\s*fixes:?/i) { > > I think that's a poor idea. > > You should really review git history for lines that start with fixes > and look at the number of false positives that would give. > > Try this grep: > > $ git log -100000 --no-merges --grep="^\s*fixes" -i --format=email -P | \ > grep -P -i "^\s*fixes)" | \ > grep -P -v "^Fixes: [0-9a-f]{12,}' > [...] > > That is a greater than 10% false positive rate. One day I'll be better at typing grep commands in the editor... Try: $ git log -100000 --no-merges --grep="^\s*fixes" -i --format=email -P | \ grep -P -i "^\s*fixes" | \ grep -P -v "^Fixes: [0-9a-f]{12,}"