Received: by 10.223.164.202 with SMTP id h10csp2348486wrb; Sat, 18 Nov 2017 19:54:13 -0800 (PST) X-Google-Smtp-Source: AGs4zMYqJssXVXwjx0MwseNvoFqbo7iaiRXUIPZaAcZZwtMW46Lu7FHW6TqwDni/3P+z2DJZdxJJ X-Received: by 10.84.130.98 with SMTP id 89mr10072574plc.232.1511063653061; Sat, 18 Nov 2017 19:54:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511063653; cv=none; d=google.com; s=arc-20160816; b=EQvitujZIwChi+YHUjHSJbDY9kVUh6GvW9cxw42/oI+1BLR426vY9RyWmpaWovAy6A c3jd3KWIbupm/lQAoregV7OkJ1ZxhAGwbMxKzm47au5nCHKag0sWLaWVsUvxEg4VLdQE xCX5RKXo5jcVEvPotisctDN0gaZkX0xmj47SXs+OiitUXhsOnMH+bBi+S9dL9FX4tM1B AvQDjcML0jerZr+XCFkiGqMhA0bF74Ny8uy2UZpDefZPloqi6O+BG0uoOkmpZFfbkaZI zVUukBHucJLfwQzxIAJcrMvQWJJp3gQFwRiI1QTuUjXA8JuXpmgCjOghFkSZHvMm2cv9 97uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=fIVIdfjD1dAx1CUPAOAY47HQL5fJR8ytOBqWcBtI1zE=; b=gtp+zgX0Wyx6PVIEKY+wH8OKRFKdkEfc+8RJnhbvyJ22cvNCCPF88J7Afswg7guxEH Cz9O9KC9ROOg3YAgMWN2LJ2HhA4KTpMOm70WXo4CWKIRx0JECt0feQrfgzVdoeanxvzA 1JvR7iaJFxldutl2hY6OaI+xc9lt6MiAdiOWnsyGm2S12a0wMpJbmVa192hV1dPiRReM xqm+cNgjUt2VyY8T6kV0m03jSvuImTHITXwiYsaCQ++uLKK4ZAOHqLVzfwB7Sgft7ZS7 uCY1IWH8c+/WCg9Q/yHA1flbBCnfv9Y1qaQ8T5heo3a5POdDBip56I+n3uQQwcTOV0TX b1+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=alkW8zQh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u62si5356325pgc.457.2017.11.18.19.54.00; Sat, 18 Nov 2017 19:54:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=alkW8zQh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1947031AbdKRIqZ (ORCPT + 93 others); Sat, 18 Nov 2017 03:46:25 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:43209 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1947019AbdKRIqS (ORCPT ); Sat, 18 Nov 2017 03:46:18 -0500 Received: by mail-wm0-f48.google.com with SMTP id x63so10380401wmf.2 for ; Sat, 18 Nov 2017 00:46:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=fIVIdfjD1dAx1CUPAOAY47HQL5fJR8ytOBqWcBtI1zE=; b=alkW8zQhBNS5u37BdI6LaspzBvmmvsaqQHt1Y4tby7/23aUleUNhlr+Hoaj46fwrYM qocTUn6tHlnPpFyrr/kTRZXL3GB0hB9U3sf27U07G0QZtssbnGFmIWGGEWXn1CWYXtKa NB+KQjc92vvy6TU7IaQ6zTai8KD+a4ikyt80Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=fIVIdfjD1dAx1CUPAOAY47HQL5fJR8ytOBqWcBtI1zE=; b=awlZAiLuF8q8qnaVxQR16bnZdQu4uFsOKECUOXE78yxpiXqtGFk1cc4vqu5GhfjJKn oLxZ4r09+u8e33RYJfLOGOj/aNVStzqlbOi5GEHF3zbc2NJR5jVK1FrJczpSGpynpoVH wXwKrJIzXVo6twLnspyj+jp6x0CTj1k7qjfCnOp56m9Zco68H7w9+kuGuFVUSwOFSzsr 6yLJaQlIBxQGxJvRoJTHLTUMkjXeLYhXnvhO1UIzt2NCc9Xk8Y7HPsieLdbmYgrEJCzc /QRUHJ2xF0SR6wX2aEi7Gt7qRZVz55aPAKQmp9+W0iKExszuSTXE49tJ96iSVLna61Vw q95g== X-Gm-Message-State: AJaThX5fEgqenBAOqeKQwtoP1+prpVE4VGYgdW20pRzQkPH7AuTgSaIM +GdDQqRYZi8ZhJXcQZ6F9dpTXg== X-Received: by 10.80.151.215 with SMTP id f23mr10850564edb.141.1510994777454; Sat, 18 Nov 2017 00:46:17 -0800 (PST) Received: from leoy-linaro (li1530-42.members.linode.com. [139.162.245.42]) by smtp.gmail.com with ESMTPSA id i61sm4057850edc.32.2017.11.18.00.46.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Nov 2017 00:46:15 -0800 (PST) Date: Sat, 18 Nov 2017 16:46:11 +0800 From: Leo Yan To: Joe Perches Cc: Andy Whitcroft , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] checkpatch: Fix checks for Kconfig help text Message-ID: <20171118084611.GA9096@leoy-linaro> References: <1510296157-13041-1-git-send-email-leo.yan@linaro.org> <1510321347.15768.79.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1510321347.15768.79.camel@perches.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 10, 2017 at 05:42:27AM -0800, Joe Perches wrote: > On Fri, 2017-11-10 at 14:42 +0800, Leo Yan wrote: > > If one patch has Kconfig section, the check script variable '$is_start' > > will be set by first 'config' line and the variable '$is_end' is to be > > set by the second 'config' line. But patches often only has one > > 'config' line so we have no chance to set '$is_end', as result below > > condition is invalid and it skips check for Kconfig description: > > > > if ($is_start && $is_end && $length < $min_conf_desc_length) { > > ...... > > } > > > > When script runs to this condition sentence it means the Kconfig > > section parsing has been completed, whatever '$is_end' is true > > or not. So removes '$is_end' from condition sentence. > > > > Another change is to change '$min_conf_desc_length' from 4 to 1; so can > > pass the check if Kconfig description has at least one line. > > Hello Leo. > > I do not like this. > > Separate changes please and that $min_conf_desc_length > change is definitely not a fix. It's a preference. Thank you for suggestion, Joe. Will send new patches soon. Thanks, Leo Yan > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > [] > > @@ -51,7 +51,7 @@ my $configuration_file = ".checkpatch.conf"; > > my $max_line_length = 80; > > my $ignore_perl_version = 0; > > my $minimum_perl_version = 5.10.0; > > -my $min_conf_desc_length = 4; > > +my $min_conf_desc_length = 1; > > my $spelling_file = "$D/spelling.txt"; > > my $codespell = 0; > > my $codespellfile = "/usr/share/codespell/dictionary.txt"; > > @@ -2796,7 +2796,7 @@ sub process { > > } > > $length++; > > } > > - if ($is_start && $is_end && $length < $min_conf_desc_length) { > > + if ($is_start && $length < $min_conf_desc_length) { > > WARN("CONFIG_DESCRIPTION", > > "please write a paragraph that describes the config symbol fully\n" . $herecurr); > > } From 1583686854571593363@xxx Fri Nov 10 13:44:38 +0000 2017 X-GM-THRID: 1583659774662838914 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread