Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4525763rdb; Tue, 12 Dec 2023 01:53:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IFoYig38DQ+SVy9oTxtSjk4odhwvldiR4I4oUnGj+o7MnJ3jFoxPYWRn6nBbzMsVXsf2b3L X-Received: by 2002:a05:6a00:8c8:b0:6d0:9bca:8645 with SMTP id s8-20020a056a0008c800b006d09bca8645mr1593530pfu.36.1702374836704; Tue, 12 Dec 2023 01:53:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702374836; cv=none; d=google.com; s=arc-20160816; b=RNc2yPRnJcT0AedRsqW+83+2zFJ5x/yLdUUHlfpKchwhnOwUVj36g5HeTmsTM/2vSb wYukc84MkTWPWt2Kseo19VtRuNyx393Ei6B1HUyTXDvFknRVrKXdNQm8X5mwV/sjgRw1 mdcEJB8FmTtBpm3lw+dJs3EOYN+0uuu28glbhZbI+rD5XcWJ+BCEfDJXG+eN6jY+i/2F mDn0lmC9ir5Q6n0bClXD+ASxrPGyThzcwdwTEhIUA1Etrx0pyxhYx+BUDca86L3v1uDn mA0xCfOVvptrDxHijHPItbJj78vyyHG8fBhKkIFvBU7qTipTF6Fv2hGTYcHXpqJQkoAz HCfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=4FYnDfB20cXN+psZI3a8Iagv7wP611UUkj3XdrM8zwc=; fh=4RdBNzyHmeL9gTU2QvEPKmxqf0IocOPJ/xvfA9JmA70=; b=uAbsjuQhBaG66CbbG5oASa7ZTSzrzZdQhvfWGh8GITdseotkHZ4Qp/pdctXuzzHmum R1S5eaZGIboOPDVPNnCYvstXgHDxQJACpyI8DEWU6z8m9i5gOq/mLrE028xYJ8d8w1Bi 02zcOuhITnUyNW+axi8WcnpkUBNOXGlwSfv8NKP+hm0dX5fTyNoh5j2oPgOYCKesd8Kk uWJ8qaDCBzp0Xrb71dRE/gGSePZ3yEH3K56RG05Sb82ZN9hP+6MCfbOFVfESVnllFlrF xlsrTbuHI1ZDP9u7K9wlrzSEn4lIrV0SM1/nhEbyoLQrPwPIKfemHBQJTEsRwE/2AbD6 PsvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jy6GG82K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id j26-20020aa78dda000000b006ce420e612bsi1973310pfr.127.2023.12.12.01.53.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 01:53:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jy6GG82K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 4DBA380320F7; Tue, 12 Dec 2023 01:53:54 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346066AbjLLJxj (ORCPT + 99 others); Tue, 12 Dec 2023 04:53:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230042AbjLLJxi (ORCPT ); Tue, 12 Dec 2023 04:53:38 -0500 Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F21C9B for ; Tue, 12 Dec 2023 01:53:45 -0800 (PST) Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-6d9f4eed60eso3015717a34.1 for ; Tue, 12 Dec 2023 01:53:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702374824; x=1702979624; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=4FYnDfB20cXN+psZI3a8Iagv7wP611UUkj3XdrM8zwc=; b=jy6GG82Kfy7+kpAMojflYCw74l7KS074o108mFcNQaovAuEhXAwJreJJchufoCMDcY M1mFTwo5ayLhYR5ThQ5OrlK0mJL1wnnlaaqKF9AsOiWrHMQiHfW/b7jhyIUXhv4cJkm+ ga6Lf1LO8DWdGIp3O3XxWHsKroOJM5LP9L/jJmODe5RmkWs6fyUbVAzNtTB2YNhYYoF8 1XjdBWvr+gyuHVNTdQyk/V1S35TxTPoMJQiBOt8mORsF56cm/NMjdziTKtKDfOldJOsA wy8KOzL52oK9gqD3JF0T707RSaVIsvEQn6ipC+5UHc7KsdM3qYgZvxJGsmsYzb5qm0eW Q3xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702374824; x=1702979624; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4FYnDfB20cXN+psZI3a8Iagv7wP611UUkj3XdrM8zwc=; b=Z6lzgg3mK/FBO/elQ2r2r/gmpTtyc7owiS5yMRcZtYmdKRdz13RMbiG0SS4hNJnB5x f0aeKw7aBVWg4Y95z7/kyA+TT9Slv7REbQLt+Al/q0k6i6DUx7EK0brBTgPAOTdzOO2K HolYegZ6E4AMYc5JwiscKiAgqaQOVdPnnL3ERXmosXilpoz3OYnLYlapApVoxSKlNzgx NZo55h5PXf9z0nW2S8hd9pTjkQII1+4EyDA5QMFsfCRZHOmYkcAhzgy0p1QAjNqoFnCn kNlIB0HrwcGVe4hLS6NeJJYU2XX+ct6MYwsiT8Fdbc0mmu59kYYk5+JF8DkrbZUmfGuX NSOA== X-Gm-Message-State: AOJu0YyA6D0OsXDySE8vTe3AMZ5jwqSCxPlW+RkW7hmVMbqzg9Eo4Wly exEccKgMGR5tvlUVdi6yWHQWM/qxGefJYX4JbOQimboMZmc= X-Received: by 2002:a05:6359:4c25:b0:170:c921:fed9 with SMTP id kj37-20020a0563594c2500b00170c921fed9mr6323036rwc.60.1702374824473; Tue, 12 Dec 2023 01:53:44 -0800 (PST) MIME-Version: 1.0 References: <20230410100255.16755-1-borneo.antonio@gmail.com> In-Reply-To: <20230410100255.16755-1-borneo.antonio@gmail.com> From: Antonio Borneo Date: Tue, 12 Dec 2023 10:53:31 +0100 Message-ID: Subject: Re: [PATCH] checkpatch: exclude gerrit's Change-Id line from commit description To: Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn Cc: linux-kernel@vger.kernel.org, borneo.antonio@gmail.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 12 Dec 2023 01:53:54 -0800 (PST) On Mon, Apr 10, 2023, 12:03 Antonio Borneo wrote: > Checkpatch rejects patches that have empty commit description and > logs them with: > WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one > But if the patch has a gerrit's Change-Id line placed before the > line Signed-off-by, then checkpatch considers the Change-Id line > as a valid commit description text. > > Use the Change-Id tag as a marker of the end of the commit message, > thus not counting its line as part of the commit description. > > This patch is not relevant for the Linux kernel development process > as gerrit is not involved and the Change-Id tag is rejected. But > other projects, like OpenOCD, base the development on gerrit and > reuse kernel's checkpatch with flag '--ignore GERRIT_CHANGE_ID'. > > Signed-off-by: Antonio Borneo > --- > scripts/checkpatch.pl | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index bd44d12965c9..5b2212d5907b 100755 > --- a/scripts/checkpatch.pl > +++ b/scripts/checkpatch.pl > @@ -3224,6 +3224,7 @@ sub process { > > # Check for Gerrit Change-Ids not in any patch context > if ($realfile eq '' && !$has_patch_separator && $line =~ /^\s*change-id:/i) { > + $in_commit_log = 0; > if (ERROR("GERRIT_CHANGE_ID", > "Remove Gerrit Change-Id's before submitting upstream\n" . $herecurr) && > $fix) { > > base-commit: 09a9639e56c01c7a00d6c0ca63f4c7c41abe075d > -- > 2.40.0 > Gentle ping about this patch Best Regards Antonio