Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2018460pxb; Sun, 17 Oct 2021 03:49:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMtUPrjCDqiYyIQoIuRwuQcgomXUl6fxJppAoIR2NeN+XblPvvR/pzswuLmXiJTnotBzwA X-Received: by 2002:a05:6402:10da:: with SMTP id p26mr34765624edu.283.1634467795167; Sun, 17 Oct 2021 03:49:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634467795; cv=none; d=google.com; s=arc-20160816; b=VH0bealrcNtnmC8l2IWv25uGtnU9q5B/RSPQUsJzUzMrbY5/pQJOgTfIH7ovEzGG1l vo7B5Wb3P9cJ97lWuMRkuryedg1/2eTcAAQCM6gCMLU3s3iKIVHKOW0Unel6Z3q4KqtV 69kObki7kcO8A7sDwwXWy01HPeHeTzkNRgX97OkPupuCf/qzXKCKOpIm51/K/vL3SlWw ZO7EYOlc5LsvBbaebINn4kUS6EhQX1BTLb6ylZLYdxnzqwsJwna/MYqTI6UipYSC0Ge9 RUTkqjjO27E3qskTXRcWhOz7bXYzkIyICrmHqBrc451PHI9hIB0V5Ej50eXKz9+2Dl8B Ff3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=tvoct91BtlWiFT32QilrXnmZiEd5y2ndoSGKgRUO1BI=; b=rP5h7czcFVNSO+2PsTdzoZK2QRxKKgyRb1CugqaNAfLSOyl9IdQAGArZRRI1MS+S7m 3Iz6wBj/QfaMtS8SKup/rvUsgGUDL2RkHDM4OMaJdisUYoId95OzqzfgXTt3MpWiNwzF LHYPd2J3fWEGVOgdm89a36JNY5iAWLuFxw8dHHX1MZ51slwEhkCmU0432q+t73AfNZfS WrWV9/PcpTjy4MdHVIaD2+8+0bQeCvsEannbjaAQMHDkLe/z/IBC/l5XDBpQ+Hbgh2gA GKvcgrGuRWy+NCM9t8zDc86Oa2Fc7F2HXyFfzgoU14MllrTzjPYtgEg8QoNpdPgmXThT yx8A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r24si13726413edb.330.2021.10.17.03.49.18; Sun, 17 Oct 2021 03:49:55 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241627AbhJOQxZ (ORCPT + 99 others); Fri, 15 Oct 2021 12:53:25 -0400 Received: from smtprelay0140.hostedemail.com ([216.40.44.140]:60616 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S236997AbhJOQxN (ORCPT ); Fri, 15 Oct 2021 12:53:13 -0400 Received: from omf04.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay03.hostedemail.com (Postfix) with ESMTP id EEC578384364; Fri, 15 Oct 2021 16:51:00 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf04.hostedemail.com (Postfix) with ESMTPA id C92EBD1517; Fri, 15 Oct 2021 16:50:59 +0000 (UTC) Message-ID: <8536d4a99103982688de6cdaeea51bc92a67af90.camel@perches.com> Subject: Re: [PATCH 1/2] checkpatch: Add check item for RFC tags is outside the subject prefix From: Joe Perches To: Cai Huoqing Cc: Dwaipayan Ray , Lukas Bulwahn , Jonathan Corbet , Andy Whitcroft , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 15 Oct 2021 09:50:58 -0700 In-Reply-To: <20211015075853.4038-1-caihuoqing@baidu.com> References: <20211015075853.4038-1-caihuoqing@baidu.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.40.4-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.65 X-Stat-Signature: pqmsez3o4czcb891jrtsp7wfi11fphbg X-Rspamd-Server: rspamout02 X-Rspamd-Queue-Id: C92EBD1517 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1+6HaJSlAtVEd4O7sPpjarRmFmgrMz/hgc= X-HE-Tag: 1634316659-100383 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2021-10-15 at 15:58 +0800, Cai Huoqing wrote: > Some patches have been sent, the RFC tag of which is > outside the subject prefix is incorrect. like this: > "Subject: [PATCH v2] RFC:" > > Perfer "Subject: [RFC PATCH v2]" to "Subject: [PATCH v2] RFC:", > so add check item for it. typo of prefer but does this matter enough to make it a test? Same typo in next patch. > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl [] > @@ -3121,6 +3121,12 @@ sub process { > "A patch subject line should describe the change not the tool that found it\n" . $herecurr); > } > > +# Check if RFC tags is outside the subject prefix > + if ($in_header_lines && $line =~ /^Subject:.*patch\s*.*]\s*rfc:/i) { > + WARN("RFC_TAG_PREFIX", > + "RFC tag is outside subject prefix, try \"git format-patch --rfc\"\n" . $herecurr); > + } > + > # Check for Gerrit Change-Ids not in any patch context > if ($realfile eq '' && !$has_patch_separator && $line =~ /^\s*change-id:/i) { > if (ERROR("GERRIT_CHANGE_ID",