Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp82438pxu; Tue, 24 Nov 2020 19:38:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2peQLiBr0CYraLnLfmqGO8ZTcacYmXckU7Xo5SlwAvlJ6z86Hi4533bDbCe0YUHRcY/cK X-Received: by 2002:a17:907:d01:: with SMTP id gn1mr1389875ejc.357.1606275492668; Tue, 24 Nov 2020 19:38:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606275492; cv=none; d=google.com; s=arc-20160816; b=y9Ly08NUWrdTQTgcxUxrGo5LlVvB3pD1rvihN8rShwm3QHtoZNpWSVTg2I9m2iE6Gb a93iXESjR9LQt+qHzYqKi/KqAdt09d8jPyggkXcNZHQXyNGAvKyKXSAi3dbPBNEi5aSf ovvrXcWohgN/pE1TRYSyDzIHNOfMQrmVZR6osL5v/loApt1sSKB/A2GtNvLaqa770ZAV nttv7359EhVh+qqGbjbFzORull1797dDrG/nhpDPqSf4wWja5++EuPHGNcL4S01rTKS9 iFcnJuHZ7p7xMmag/3JLNepEG+XaRNSZU9uhlIv3AlZQM1dvNhQX2Tk3i2Z5vnQ7W4ku OeQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=Tuwj9Urjk3IP5QD4wuPrePfFsIpPerJ+cAUkjWS9Zzs=; b=AUokDg1amySj/W5UjVd/DIk2D5DZWyXAnfirvCGjGUJsQggEQrEVBFjIIL2zRrQ+ad xbclHFFTvqFZAwZUeN1pl8ysN5jIb8MBw9KtEaKuWDyyMRyFZkwF6ABfnhIHheFeBEG8 YT8hYrOPB9Gzior1d1Lk6WC1KjMdnjDZ9J/SOyCetRdz/qB/TjdvJ3YxRxU7ACiUed51 vs02huLXulPHXEbNWM7lP2w0tFQfeZu49SWh4jAd0yrydYYeF0fEoAHYCnoQGYjOq8V5 g3BewFxtnHTQ7k5NIpbuLXGL/9K+eqrbqaZwitQfzyPTK5xx7GoiTbMewLclc4bQkN8p yDFA== 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 qp14si542187ejb.588.2020.11.24.19.37.46; Tue, 24 Nov 2020 19:38:12 -0800 (PST) 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 S1727123AbgKYDf5 (ORCPT + 99 others); Tue, 24 Nov 2020 22:35:57 -0500 Received: from mail.loongson.cn ([114.242.206.163]:35476 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725776AbgKYDf5 (ORCPT ); Tue, 24 Nov 2020 22:35:57 -0500 Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9AxKtAV0b1fR1kWAA--.36754S2; Wed, 25 Nov 2020 11:35:49 +0800 (CST) From: Tiezhu Yang To: Andrew Morton , Andy Whitcroft , Joe Perches Cc: linux-kernel@vger.kernel.org, Xuefeng Li Subject: [PATCH RESEND] checkpatch: Do not check git commit description style when backport the upstream commit Date: Wed, 25 Nov 2020 11:35:47 +0800 Message-Id: <1606275347-19297-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf9AxKtAV0b1fR1kWAA--.36754S2 X-Coremail-Antispam: 1UD129KBjvJXoW7CF1xurW5Cw47Gr47CrykXwb_yoW8tr4xpa 1DW34FqrWrGF1UJanrG340qayYgws5Xr1I9ryDuF12vFyUKFn2qr9avr1fZr17AFyF9aya qa1rC3sag3W0kFUanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUkG14x267AKxVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK02 1l84ACjcxK6xIIjxv20xvE14v26F1j6w1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26F4j 6r4UJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v26r xl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj 6xIIjxv20xvE14v26r1Y6r17McIj6I8E87Iv67AKxVW8JVWxJwAm72CE4IkC6x0Yz7v_Jr 0_Gr1lF7xvr2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7MxkIecxEwVAFwVW8 GwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r 1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij 64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr 0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6rWUJVWrZr1UMIIF0xvEx4A2jsIE14v26r1j6r4U MIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x0JU5pnQUUU UU= X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When backport the upstream commit to the internal LTS kernel version, we usually use the following description [1] [2]: [ Upstream commit cc6528bc9a0c901c83b8220a2e2617f3354d6dd9 ] or commit c51f8f88d705e06bd696d7510aff22b33eb8e638 upstream. We use checkpatch.pl before auto build and there exists auto build failure due to the following checkpatch error: ERROR: Please use git commit description style 'commit <12+ chars of sha1> ("")' - ie: 'commit cc6528bc9a0c ("r8169: fix potential skb double free in an error path")' #6: [ Upstream commit cc6528bc9a0c901c83b8220a2e2617f3354d6dd9 ] or ERROR: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit c51f8f88d705 ("random32: make prandom_u32() output unpredictable")' #6: commit c51f8f88d705e06bd696d7510aff22b33eb8e638 upstream. We can use "--ignore GIT_COMMIT_ID" to avoid this checkpatch error, but I think it is better to modify the check rule of checkpatch. When there exists "Upstream" or "upstream" in the commit line, it seems no need to do more check. [1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-4.19.y&id=bc571404829755e4a9504cc5fbc636fea80b2d83 [2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-4.19.y&id=81d7c56d6fab5ccbf522c47a655cd427808679f2 Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> --- RESEND to Andrew Morton <akpm@linux-foundation.org> scripts/checkpatch.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index fab38b4..f5bbfdd 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2889,7 +2889,8 @@ sub process { ($line =~ /\bcommit\s+[0-9a-f]{5,}\b/i || ($line =~ /(?:\s|^)[0-9a-f]{12,40}(?:[\s"'\(\[]|$)/i && $line !~ /[\<\[][0-9a-f]{12,40}[\>\]]/i && - $line !~ /\bfixes:\s*[0-9a-f]{12,40}/i))) { + $line !~ /\bfixes:\s*[0-9a-f]{12,40}/i)) && + $line !~ /^\s*Upstream|upstream/i) { my $init_char = "c"; my $orig_commit = ""; my $short = 1; -- 2.1.0