Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp701398ybz; Wed, 29 Apr 2020 07:55:37 -0700 (PDT) X-Google-Smtp-Source: APiQypLUFtzIi6XMVOC1DPqVBeJl79rFbGvqL6MdbKc3V+4b7VtuJpEI3Et+d3DDiFv7ICrVGMvo X-Received: by 2002:a50:e8c7:: with SMTP id l7mr2727697edn.309.1588172137542; Wed, 29 Apr 2020 07:55:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588172137; cv=none; d=google.com; s=arc-20160816; b=ayLVHBx0fNvlsmG+dSJO0/CUepCndupThbDXNBEQH+XHQ4ymoTcoidGZxkBE4Pq8P5 pbWYAMBQNW86tWdaePihp/jg7PPqGbAfvSNDTrxAVRdZeyvc0JebSN9BzqA9NPQNXomE PT5pXpS9WvKgi6ntqDfXGGiDgrstDj0x/dPeY2PyRSvZCQ7h1JfUlFWVaEEEnJEya0Id W7Ryzc15J07lllww4qx1fyH4t5HAJ1w8aaYWI9FXyv5HeYeMbLa2cSzbL1WOMR60aKdH CecL5hvZ1+5E3eDetCSKRG1g+Hl9/8QUuE40bKQKUBcyixeYdC51RkPAHpOxLB6OY1li EpfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=0ZRCFqU303/twN8hVJ5hqfcmrbnv34m+1dUf1S5stNk=; b=a0ChqwXKO5JnFpRT7hIpG/aER66qai0K8OcxFXjekEkbV4Sqjk2Rfi9Z9/W3eHcpDn Q9bXUIArapmRT9y9dMv0GqZG9RhvMV/L5Pd4DDx0wnFdBsPdCyP2MtIf3jcCyhxolbI5 COXhDufpCQXSJV5aU89LgthK0cQ9JyMJBbO6VMNiYwWE3llj9cfj7ijCCUWDoyPTir/O 0RCjsiqqksMwGaAAWXdtVZ7j6lE36H/T36H4JHoNjOplL+UXExKYZiWE8lMiK419snSv 5kpg2nBcdQJy0yNjigM3essJ7+142kwVk1S+m+lkhYrDS2l22Ku6oFmMmWZ7N4nOZG35 mWsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aOYnwekw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i14si3878126edt.120.2020.04.29.07.55.13; Wed, 29 Apr 2020 07:55:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aOYnwekw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726797AbgD2Ox2 (ORCPT + 99 others); Wed, 29 Apr 2020 10:53:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726484AbgD2Ox1 (ORCPT ); Wed, 29 Apr 2020 10:53:27 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3D05C03C1AD; Wed, 29 Apr 2020 07:53:27 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id 145so1162776pfw.13; Wed, 29 Apr 2020 07:53:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=0ZRCFqU303/twN8hVJ5hqfcmrbnv34m+1dUf1S5stNk=; b=aOYnwekw+Ep61qJAMEnkw1HpeaNpSpUiVZAODecFZzn3FmNASj/FNznKgfNWegoS60 Yx5v1NGzv3S/cPXEc3ALlBzUihHvwDLvBYDf17ffCaRVDrXS7RuTipnW8sDa30ggxmse RxoTryFRRFriEs7NCReUY3zAzzqEf45PXnZxoAn9U33LHz7Y/EXsLGugPMvi1SoSxEqq WjhhGe5oRPVT2bScL/FE/cnQ1Q3Ib8s4lq/Dm0vMqw9KXRs1rHPyQ7f9yl8eiLOl1YIb k+wLFh11qK0RwlCEPBLxcBsPeEylR5cfU3rJWCmg4L/vfq9U6d9G6fHsv3rHNlf8jPL7 ofNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=0ZRCFqU303/twN8hVJ5hqfcmrbnv34m+1dUf1S5stNk=; b=a0i++ZttpGzhTov6BWEBpoZ8GNv933+x4sUKPNbacyDy/S2AEN4BksqR0xDkYtu8WV Dn9wyIZUBTtvQkfOe+qdsdrNmPBYnJ0QJo0hCgPLofepm/CeLIxoyff47JxqZlfDBjGP 2Lf51Q0Cra81G9TaC2nSxax/aW+Q2TvRYAkSgHjmaZIJy7xNAT4uiImkPrD6aJ/7jrlT Otc9BTZxB8Dd6DEHzYrfFY8VZWtZoLdxFsyBYNjqkONfPsOJA8+nfQ593hIYMQ87uRVM jPFLvCnpxCOKFGNve47vMMtP5jDdlagDiqgLuPzgNhPIb3N2xLuktonwYvkAnApyGGgF Lvew== X-Gm-Message-State: AGi0PuYLitqG4rOy0CCuuNRbkOFogbIeq1xKaicigL7EOlkBusQaw1mN 2FvpMyE4yagGPhCnOeYTU0Y= X-Received: by 2002:aa7:951b:: with SMTP id b27mr35415299pfp.2.1588172007216; Wed, 29 Apr 2020 07:53:27 -0700 (PDT) Received: from udknight.localhost ([59.57.158.27]) by smtp.gmail.com with ESMTPSA id y24sm1243603pfn.211.2020.04.29.07.53.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Apr 2020 07:53:26 -0700 (PDT) Received: from udknight.localhost (localhost [127.0.0.1]) by udknight.localhost (8.14.9/8.14.4) with ESMTP id 03SGIdPj000709; Wed, 29 Apr 2020 00:18:39 +0800 Received: (from root@localhost) by udknight.localhost (8.14.9/8.14.9/Submit) id 03SGIVsG000694; Wed, 29 Apr 2020 00:18:31 +0800 Date: Wed, 29 Apr 2020 00:18:31 +0800 From: Wang YanQing To: Markus Elfring Cc: Joe Perches , Andy Whitcroft , kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Alexei Starovoitov , Matteo Croce Subject: Re: [PATCH v3] checkpatch: add dedicated checker for 'Fixes:' tag Message-ID: <20200428161831.GB30042@udknight> Mail-Followup-To: Wang YanQing , Markus Elfring , Joe Perches , Andy Whitcroft , kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Alexei Starovoitov , Matteo Croce References: <20200428020223.GA28074@udknight> <38e1a926-53a6-bda6-cb07-2614f4c682ba@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <38e1a926-53a6-bda6-cb07-2614f4c682ba@web.de> User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 28, 2020 at 12:52:59PM +0200, Markus Elfring wrote: > > And there is no 'Fixes:' tag format checker in checkpatch > > I have taken another look at corresponding implementation details. > Will programming challenges get any more attention? > > > > to check the commit id length too, > > The mentioned script contains the following information. > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/scripts/checkpatch.pl?id=b240f960afb900e59112ebcfa5a759bb0a85a14e#n2818 > > # Check for git id commit length and improperly formed commit descriptions > > > > so let's add dedicated checker to check these conditions for 'Fixes:' tag. > > How do you think about to reconsider the usage of the word “checker” > at specific places? Yes, I will use the word "check" only in later version. > > > > + my $id = '0123456789ab'; > > + my $orig_desc = "commit description"; > > * Do you try to extend the existing software analysis approach “GIT_COMMIT_ID”? > > * Would you like to avoid the development of duplicate Perl code? Fixes: lines don't need to have a "commit" prefix before the commit id, the description in normal commit id could across multiple lines, and we don't need to consider the $commit_log_possible_stack_dump for 'Fixes:' tag line. I mean it will make the GIT_COMMIT_ID code become harder to read and maintain. > > Regards, > Markus