Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3436815rwb; Mon, 5 Sep 2022 11:37:16 -0700 (PDT) X-Google-Smtp-Source: AA6agR6ttLU3Sssg9bb35PGLK6ywZHPrLFdji1ogtj7NknfJoz5CU6MOsEfS2k8aFQ4ueFHWE4dE X-Received: by 2002:a63:77ce:0:b0:430:93ec:77b6 with SMTP id s197-20020a6377ce000000b0043093ec77b6mr17885872pgc.415.1662403036649; Mon, 05 Sep 2022 11:37:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662403036; cv=none; d=google.com; s=arc-20160816; b=v542AO0TD/SY0c9jmjo5mw3HxDuJTcqEVQk+CZ6Dye2881BdZ3cDQ6ptnUiVa3/BYL cEbLNri73JCTWpSuaZfcngHLqxRnyFGwH/ueMIbnVcBfHF7UiHLIe5Y7Wy5WnX+zbn+M T8a92zlvOKCikEJ+BRRUFSOp5q3Uc/Kg6d9b0bZNcsBnJRFJ85qA6qerhK46c6LlgFre EgqQ9a/ItSvKYDEz3EjMm4ImcIYZSnnfh2os5Sf9T7NkqMRAewUsxAEAPgAchCn56aUP ifV8TMnfZZlMe7aoDxU98BEzFqDJkoF2UH5IbLtms1NiefdiPX9FBTs327TQMCKFFZTO MgsA== 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=sfpL5hcs6CwXgN+AL33HKYePJwS4WFqx2pBmKG1IH78=; b=xTRSfWVjMmGXvQtQP3tBfUXb8KoVRrVecYZoh+STc68iObBvY6zbXIer4rI3SbbX0d OT445ZviNc0CaR3C0xX1aIM4D0xt4VFcc1jla28AhGcK+Oq05GsZ925jb2s8OLpo9m7Q Vj9rPL59CI3VR9E/EzEO50rIJHhJY5VPP082XQZgZWBqcejfPyN9um9jcD0G1nxMEafy bwjGNGp1/1iyoTUAPZYLib+xjZHT163eNWNc8AypYCEQFSot9LIKqXeV6YOLx2bAGpDl eCX18EZWj0L+jRKLa56FUfVRjUmPCWNEcIc4YbKjLOxDrHxgJdWQX16AKXgIqlzT0PZT rA7g== 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 q22-20020a631f56000000b0042c7b672365si11256383pgm.416.2022.09.05.11.37.03; Mon, 05 Sep 2022 11:37:16 -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 S231747AbiIESAp convert rfc822-to-8bit (ORCPT + 99 others); Mon, 5 Sep 2022 14:00:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231872AbiIESAl (ORCPT ); Mon, 5 Sep 2022 14:00:41 -0400 Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BB7130F7E; Mon, 5 Sep 2022 11:00:40 -0700 (PDT) Received: from omf08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 0701E1C7378; Mon, 5 Sep 2022 18:00:38 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf08.hostedemail.com (Postfix) with ESMTPA id 0D4F120027; Mon, 5 Sep 2022 18:00:36 +0000 (UTC) Message-ID: Subject: Re: [PATCH] checkpatch: warn for non-standard fixes tag style From: Joe Perches To: Niklas =?ISO-8859-1?Q?S=F6derlund?= Cc: Dwaipayan Ray , Lukas Bulwahn , Jonathan Corbet , Andy Whitcroft , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, oss-drivers@corigine.com, Simon Horman , Louis Peens Date: Mon, 05 Sep 2022 11:00:35 -0700 In-Reply-To: References: <20220829155358.2546732-1-niklas.soderlund@corigine.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-Stat-Signature: uncp4j6xx9jbwat6rjj9xty5a5f8dd17 X-Rspamd-Server: rspamout08 X-Rspamd-Queue-Id: 0D4F120027 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-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1+n5QMvrlHvXTuREULemMyhNEhC5t3e5V0= X-HE-Tag: 1662400836-313636 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 Mon, 2022-09-05 at 12:49 +0200, Niklas S?derlund wrote: > Hi Joe, > > Thanks for your feedback. > > On 2022-08-29 23:06:43 -0400, Joe Perches wrote: > > > + if ($line =~ > > > /(fixes:)\s+([0-9a-f]{5,})\s+($balanced_parens)/i) { > > > > Maybe use fixes:? so the colon is not required in poorly formed uses > > I tried that but I think it brings more problems then it is worth. With > that change the check would run for each line of the commit message that > begins with the string 'fixes', not just in the tags section of the > message. So it would warn for the commit message, I think it's not a problem. Look at the results of: $ git log -100000 --no-merges --format=email --grep="^fixes" -i | \ grep -i -P -oh '^fixes:?\s*[0-9a-f]{5,}\s*..' | \ sed -r -e 's/^(fixes:?\s*)[0-9a-f]+/\1/i' | \ sort | uniq -c | sort -rn | head -20 73974 Fixes: (" 1345 Fixes: (' 399 Fixes: 246 Fixes: (A 215 Fixes: (" 172 Fixes: (c 121 Fixes: (s 114 Fixes: (d 110 Fixes: (P 98 Fixes: (i 90 Fixes: (m 86 Fixes: (n 78 Fixes: : 57 Fixes (" 51 Fixes: "n 47 Fixes: (a 46 Fixes: (t 43 fixes: (" 42 Fixes: (p 41 Fixes: ('