Received: from eggs.gnu.org ([2001:4830:134:3::10]:38577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXR3t-000593-TV for qemu-devel@nongnu.org; Wed, 10 Aug 2016 06:48:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXR3n-0007nS-SV for qemu-devel@nongnu.org; Wed, 10 Aug 2016 06:48:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXR3n-0007nL-MO for qemu-devel@nongnu.org; Wed, 10 Aug 2016 06:48:31 -0400 References: <1470817370-145190-1-git-send-email-pbonzini@redhat.com> <1470817370-145190-5-git-send-email-pbonzini@redhat.com> <1615109044.796866.1470824702137.JavaMail.zimbra@redhat.com> <407485752.798879.1470825877555.JavaMail.zimbra@redhat.com> From: Thomas Huth Message-ID: <1e92ae4b-32a4-65d3-eab9-8dfe8b6f311f@redhat.com> Date: Wed, 10 Aug 2016 12:48:27 +0200 MIME-Version: 1.0 In-Reply-To: <407485752.798879.1470825877555.JavaMail.zimbra@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 4/5] checkpatch: bump most warnings to errors List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, armbru@redhat.com, famz@redhat.com, cornelia huck On 10.08.2016 12:44, Paolo Bonzini wrote: >>>>> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl >>>>> index 714a000..ab08ca2 100755 >>>>> --- a/scripts/checkpatch.pl >>>>> +++ b/scripts/checkpatch.pl >>>>> @@ -1289,11 +1289,11 @@ sub process { >>>>> # This is a signoff, if ugly, so do not double report. >>>>> $signoff++; >>>>> if (!($line =~ /^\s*Signed-off-by:/)) { >>>>> - WARN("Signed-off-by: is the preferred form\n" . >>>>> + ERROR("Signed-off-by: is the preferred form\n" . >>>>> $herecurr); >>>>> } >>>> >>>> If you turn this into an ERROR, it's not the "preferred form" anymore, >>>> but the "mandated form". So I'd suggest to either keep it as WARN or to >>>> rephrase the message. >>> >>> What about: >>> >>> ERROR("Signed-off-by: is spelled with >>> uppercase \"s\"\n" . >>> $herecurr); >> >> That would still be confusing if I'd spell it like "Signed-Off-BY", for >> example. > > > Right, so I guess "The correct form is \"Signed-off-by\"\n" is more precise. Yes, that sounds better. >> Maybe the outer check should simply not be case-insensitive, then you >> could remove this check here completely? > > The reason for that is to hide the "Missing Signed-off-by: line(s)" error. > See here: > > # This is a signoff, if ugly, so do not double report. > $signoff++; > ... > if ($is_patch && $chk_signoff && $signoff == 0) { > ERROR("Missing Signed-off-by: line(s)\n"); > } Sure, but I think that error would be OK, too, since most people should be able to figure out that they spelled "signed-off-by" in a bad way when they get a "Missing Signed-off-by: line" error. Thomas