From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06992C4321E for ; Mon, 5 Dec 2022 12:39:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231877AbiLEMjh convert rfc822-to-8bit (ORCPT ); Mon, 5 Dec 2022 07:39:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231869AbiLEMja (ORCPT ); Mon, 5 Dec 2022 07:39:30 -0500 Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C0F91B9C6 for ; Mon, 5 Dec 2022 04:39:22 -0800 (PST) Received: from omf06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 8E91C407AE; Mon, 5 Dec 2022 12:39:21 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf06.hostedemail.com (Postfix) with ESMTPA id 3FCF32000E; Mon, 5 Dec 2022 12:39:19 +0000 (UTC) Message-ID: Subject: Re: [PATCH] checkpatch: Add the backport commit format check From: Joe Perches To: korantwork@gmail.com, apw@canonical.com, dwaipayanray1@gmail.com, lukas.bulwahn@gmail.com Cc: alexs@kernel.org, linux-kernel@vger.kernel.org, Xinghui Li Date: Mon, 05 Dec 2022 04:39:18 -0800 In-Reply-To: <20221205094826.44844-1-korantwork@gmail.com> References: <20221205094826.44844-1-korantwork@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) MIME-Version: 1.0 X-Rspamd-Queue-Id: 3FCF32000E X-Rspamd-Server: rspamout07 X-Stat-Signature: zbkwwnnyjwb3oukthes7wu98i51kqhph X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1/M7+oG2JkfReSLyAmweKq7tz3+LP5Aykg= X-HE-Tag: 1670243959-42702 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2022-12-05 at 17:48 +0800, korantwork@gmail.com wrote: > From: Xinghui Li > > The backport commit has been used to be misreported as Error > by checkpatch.pl like this: > > 'ERROR: Please use git commit description style > 'commit <12+ chars of sha1> ("")' - ie:...... > commit <sha1> upstream. > > total: 1 errors, 0 warnings, 8 lines checked > ' > So, add the backport commit format check to avoid the above mistake. nak. I don't believe this should be an accepted style. and > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl [] > ERROR("GIT_COMMIT_ID", > - "Please use git commit description style 'commit <12+ chars of sha1> (\"<title line>\")' - ie: '${init_char}ommit $id (\"$description\")'\n" . $herectx); > + "Please use git commit description style 'commit <12+ chars of sha1> (\"<title line>\")' - ie: '${init_char}ommit $id (\"$description\")'\nor check the backport commit description format\n" . $herectx); Output messages are only single line not multiple lines.