From patchwork Sat Nov 18 08:48:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 119243 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp1495541qgn; Sat, 18 Nov 2017 00:49:07 -0800 (PST) X-Google-Smtp-Source: AGs4zMa8D3v+m8Rl9WFlnYFW9DsLbkeXFfKviYwuwBfaif/GnaC7CWpsiKy26meX7oPBUwGXTmpf X-Received: by 10.159.216.152 with SMTP id s24mr1989271plp.447.1510994947467; Sat, 18 Nov 2017 00:49:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510994947; cv=none; d=google.com; s=arc-20160816; b=JjdAtVA1xr6RfYk/kyRHiSGdYofxwB64QuP6f2wCynCAiYYqSEtUzB+vc2l0rxp2dN Tfixto69rKCcGdC2qPa475xKMqysdLH+1ybrxOTl+3FPBCtVeejsEcG5OCvqrCZ6cjZc Sk9qx5oHGh7TnziyOF2XlPhHEpt42glvLoczQSvbFFO06rifjA3k2ENyFCg0+QwziEGi R6IrQcIz5UV0fGRiIY5rZxTY17TXZVn99v/zsL5DQvFjVlyIyDz+GZ7BIKQflFu8chqk fpiAEobigMTWI1vokwbH630eJCPcADM8gpra1UHbvWkyVAmA+zRFJ0b1ujW/L4rfI511 EdrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=twdPD9So9pHhDHfm7l50CVoAVcP+LYgH0hpZg8dVjag=; b=l/ci44apGwxfseNSE4RbCLay4Ah7z5VZUTF5P4nK6kLoxJUZCfKRgoOeWjG+TYWNS7 HtYKRhZoJc3ozJszycTOcFWF1KwaeQlKsToYwOI26pJdepqyz1E/XEZHrZOnbTJDkEFZ Av6BQPjco2235FbaOnPkANf7J+nq8kTsMWLBPHP/oyd2lkNTvoLTP+Eaaiisgk2kOqts lRHup+yTmMShHYsnN7MNnXung9xzDfVVmonF0pKmbvMYwZs9AM2Zh1k9G0bL3QpRRuMm y2OoP8Skwa7Oj8E8Dt+fiDBe2t7MGiQqjtXLFIHPhy0UL/AVaYf6gvPPmAEDUxSfCid8 e4vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K0EKReOm; 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 d127si4171989pgc.372.2017.11.18.00.49.07; Sat, 18 Nov 2017 00:49:07 -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=K0EKReOm; 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 S1947066AbdKRItG (ORCPT + 28 others); Sat, 18 Nov 2017 03:49:06 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:45834 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1947037AbdKRIsz (ORCPT ); Sat, 18 Nov 2017 03:48:55 -0500 Received: by mail-wr0-f195.google.com with SMTP id a63so3977462wrc.12 for ; Sat, 18 Nov 2017 00:48:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=twdPD9So9pHhDHfm7l50CVoAVcP+LYgH0hpZg8dVjag=; b=K0EKReOmNLdZXy7VYYA5UXzzh5IlFkrF1zlKjoJazzFu1y1GlfP+xdygcNAHjKHAoR x89VhIfYi6krTmqYr0n8BDI9gZV7OobjyB1pR4ifao4SEuudjUKveh/0BJpPG4fRjKgm L1ln8b4xS5ZUfaPePdV0RHME2IdEZEGI8TBJQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=twdPD9So9pHhDHfm7l50CVoAVcP+LYgH0hpZg8dVjag=; b=PKoB6KEKIfKo5yuUng4auuF/qRLfwMzyIbqmvyHDNGLeir0lwy48fvzDf2vrwHLE2F DVAIbAb4xqzYkDgojdwdAuikPKcFrpkJ2UtOlIxzLWNqSOAfRT7KwDV0qqmnR/D/zLgC PEfHCdyoQAn+6+8XAsGLLP4k24kaGj2Mrf2nT6PL4b9Rj58mxGAkjF/9ejqs+Vqt1lUT M/CO1MG2P6XiMxGsRE6dN0zsRGI5d/sTHx0AlkbXsGvhLMQZlYUv2U7AWQUOYN50cGBC B877BMgPPckeunUK6uztSIeK734QaRdoQ1ynRWKjsG3gGgGzMjnujXri8zAY15lfdGMU cfaw== X-Gm-Message-State: AJaThX6LZ9GsKu+TBtSB30OvQE5v6rGhN5iPEFYT4OLAAYsiOeZPS5jZ rlaULPen2cMA5aNYCIHyam2A5A== X-Received: by 10.223.139.221 with SMTP id w29mr6121589wra.43.1510994934811; Sat, 18 Nov 2017 00:48:54 -0800 (PST) Received: from localhost.localdomain (li1530-42.members.linode.com. [139.162.245.42]) by smtp.gmail.com with ESMTPSA id x75sm7895132wme.29.2017.11.18.00.48.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 18 Nov 2017 00:48:53 -0800 (PST) From: Leo Yan To: Andy Whitcroft , Joe Perches , linux-kernel@vger.kernel.org Cc: Leo Yan Subject: [PATCH] checkpatch: Make '$min_conf_desc_length' default value to 1 Date: Sat, 18 Nov 2017 16:48:42 +0800 Message-Id: <1510994922-9751-1-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Make '$min_conf_desc_length' default value from 4 to 1; so can give more relax check for Kconfig description has at least one line rather than four lines. User can still pass parameter "--min-conf-desc-length=X" to set more strict check. Signed-off-by: Leo Yan --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 6050323..1dd5366 100755 --- 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";