Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3946172pxb; Mon, 1 Feb 2021 08:34:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZ3EzeiTrxxCcRJMFwC2Jk4xdjzi7f0SG+wGLu/sMUaTd1FlE/3qKw9WEEm8852bVgNYtG X-Received: by 2002:a17:907:1b06:: with SMTP id mp6mr18520608ejc.408.1612197272436; Mon, 01 Feb 2021 08:34:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612197272; cv=none; d=google.com; s=arc-20160816; b=tnkklMgsF1aPxcZmAcMrSNrpsGbxMKBym33eBdDdo6S3BOxicAlhbVFmT1rN3Yjt7V V7x7g/RQw0ubAsg+BK1Lpc1O1FQQ4GzSmLyKuEev/UYhUpdG7WLoek8rTZtX33MZAj4+ NIWIiAf0+A0Fs5T+ddFAujML6ZWnZCddLCFi5qLx4luAo3jE1MZtaoOgF0VvLIKWR1+Q gXKeANxwHgKMB9sFwwXFZ0budHYPQECeRVMvYNCKEeRAwJIEyzNYZaOcAH7osg6e4iYA QOk0nyXi1OrEfyh202JuY9NfILhgVAH+D1+q2LV6AdcPnB41No88dzpdiF5maUcqO1XN OFyg== 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=8c5OeN2KmOxde6TbEskRaof421LLgsFitElWW28zDR4=; b=L+87zJhncHqssDIr+UIRMXy1eR7bmcCArXgRocH/vsGzh1P8iMVHIak8m6s1hoatLT Kc+CBoRGiTmenhjf8ECWbgK764ycM21Vt4IPZc5oKQsUVlQdMA+DkeC/cPOyRWV5C9qH JaKJsT/+7m2QHhN7h5D5OxYlyZzcmd9L9q+BToO/EkXaD/KFwhXcVS9s1o2jueWTm+sk pqYYDvDPNAJ0hVgXv5Q2ONDmyrh9xv6x/aYP2eGbHgeaf+AYDUUgUZkjUzVt7ivj5Rzm sVXcAgtnj+6q2+7P5Y7uQ0bXDf1NsdVyK8jdKC6LsygQAY31crd949c6RWipuVVD1Bv7 nF1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="duWL/5em"; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gl3si10718692ejb.356.2021.02.01.08.34.03; Mon, 01 Feb 2021 08:34:32 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="duWL/5em"; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231643AbhBAQdf (ORCPT + 99 others); Mon, 1 Feb 2021 11:33:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:57090 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231624AbhBAQcf (ORCPT ); Mon, 1 Feb 2021 11:32:35 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7373C64E95 for ; Mon, 1 Feb 2021 16:31:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612197106; bh=bD7UbJ6vT0UPTSwjt3ttiyd+WwYJ9x/CMpj+BEQqOrk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=duWL/5em7J4DQAo6N5fmufvAwvnGDPXYl03eqw73DHmCLNPfZ3BvmqULhlHTG3pl6 sHWpeLwpT2roGIRrgqKXl9Jic24Uqe0vngJjUosjM3QynDprWDzwiqJqQnkT2mIccV CNFChxqHfz8gMxNM0LELQNDhgWM3TcBfVlfgReDE0qnD6c2Fu8FBkV8Qo4yjveT+q8 W4dgNGv1V9XYWndHsfrhp0W0rLTaRFk2S5qPJ63e8jkEKyZp5ZIWyHGwa0R9NPYA/w iXwqhZixnqihupioVI+x6zZOYBL2z6GMMXcWseJBJVsccj1SBKm+8drgXODVsPsmDd orh3V9KD0+Zpg== Received: by mail-ed1-f46.google.com with SMTP id y18so2257652edw.13 for ; Mon, 01 Feb 2021 08:31:46 -0800 (PST) X-Gm-Message-State: AOAM531fEsYWDGG+s8eUgx1Ymhd2XC37AoE4GjqX/BK96LlajbEcypYI feBbeS7gmYs8O7Fuyze/+oKa0EIavOjLLbTy0R8= X-Received: by 2002:a50:b246:: with SMTP id o64mr18837214edd.132.1612197104981; Mon, 01 Feb 2021 08:31:44 -0800 (PST) MIME-Version: 1.0 References: <1611847603-15736-1-git-send-email-shradha.t@samsung.com> <19f201d6f88c$cba69450$62f3bcf0$@samsung.com> In-Reply-To: <19f201d6f88c$cba69450$62f3bcf0$@samsung.com> From: Krzysztof Kozlowski Date: Mon, 1 Feb 2021 17:31:32 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] checkpatch: add warning for line space after "Fixes:" tag To: Shradha Todi Cc: Joe Perches , "linux-kernel@vger.kernel.org" , apw@canonical.com, pankaj.dubey@samsung.com, Lakshay Mehra Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 1 Feb 2021 at 12:27, Shradha Todi wrote: > > > -----Original Message----- > > From: Joe Perches > > Subject: Re: [PATCH] checkpatch: add warning for line space after > "Fixes:" tag > > > > On Thu, 2021-01-28 at 20:56 +0530, Shradha Todi wrote: > > > Add a check to give warning for line break between Fixes tag > > > and signature tags as that is the commonly followed style. > > > > > > Also add a --fix option to delete space lines after "Fixes:" tag. > > > > > > Signed-off-by: Lakshay Mehra > > > Signed-off-by: Shradha Todi > > > --- > > > scripts/checkpatch.pl | 9 +++++++++ > > > 1 file changed, 9 insertions(+) > > > > > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > > > index 92e888e..6c144c5 100755 > > > --- a/scripts/checkpatch.pl > > > +++ b/scripts/checkpatch.pl > > > @@ -3027,6 +3027,15 @@ sub process { > > > $commit_log_long_line = 1; > > > } > > > > > > > > > +# Check for no line break after Fixes > > > + if ($line =~ /^\s*Fixes:/i && $rawlines[$linenr] =~ > /^\s*$/) { > > > + if (WARN("UNNECESSARY_NEWLINE", > > > + "Newline is not required after Fixes:\n" . > > $herecurr) && > > > + $fix) { > > > + fix_delete_line($fixlinenr+1, $rawline); > > > + } > > > + } > > > > I think this isn't necessary and $rawlines[$linenr] may be not exist. > > > > I recently submitted a patch with the fixes tag followed by a line break > and then SOB. > I received a comment saying "no line space between Fixes and SOB" [1]. > So my intention of adding this was to save the maintainers time from these > silly mistakes. > Any suggestions for improving this patch? Thanks a ton for the prompt > review. Hi, Thanks for your submission. Suggestion is: do not ping too early, give around 2 weeks for review. If nothing happens after two weeks, resend or ping. Best regards, Krzysztof