Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp7823629pxu; Sat, 26 Dec 2020 06:09:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwVCcn+xkCnXpP4QusEiuc2/h2vLPS/JdkIssinHESlS4/pvJGJrpmPngTYhxcFd4J2yPmU X-Received: by 2002:a17:906:254b:: with SMTP id j11mr35103181ejb.326.1608991744838; Sat, 26 Dec 2020 06:09:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608991744; cv=none; d=google.com; s=arc-20160816; b=wOe0Zzty/pIUA7O483Gudlln6f5SX8TSpo3BcIjEFSvMUwGsss0DE+PQs3TkdrjwlA jHAYyQvZKen3gn0hPuLlsHinqUfzRIQEiDO51i0U7xMEyMT3jIcYFmRpa0/5l+zvZW+U dMRkXdM1UDhIS0Rd474EY/6G/khqJC9nDdiBkvCYbpznVVwSosCRjiUZHC/SxJSEC3LH flbdUz/U0U4e/LizvzlP/DOJbKzMUrf4x6UloDxHQWiM+6HR4W90vVtl8WWamP082EP6 lHYwDjvGhDxay4zvVpGjVtwqefZRN6Qbt65heJbBzfqEXefJbZFnA2dLIuNMxVzcbJ+2 QBsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9CoTgr9jhIVIzQsReVlJlsXyk5irSU1vGHHGHILF/Co=; b=wcWqTmB3KUAAtB/61m7m/PFRZgHBvzXYSy6ixEa0kzIqgMqoyjt7q29+2gon+j/Rf6 tKJo4TpRZdD2kmrSWOc4YYymIqw6fQJjftb2Taa804mwmXCvxQzJSw7cCgk5nbX2ZNng 3Tfv1uA/1a2KJ8ftLrrWH/KsPs1EV5sG148PqYlgSpVBsb5OfI3T5QeOQTZa+LO2vRWJ m3wDhWzOmumlckoT80tQBx0km0MxubAnD69DlZaF2VYfFcZMA/FlHQ1dce3Mu9ApY91p k4UMIqxYn2aSnxtuOuqYLG4h3EQ8GCXytNm905S+njFNa+4oLSZPwg8DwEaI3Em7SenG 51Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fau.de header.s=fau-2013 header.b=YsYa5TV1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r24si17427463edq.449.2020.12.26.06.08.38; Sat, 26 Dec 2020 06:09:04 -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=@fau.de header.s=fau-2013 header.b=YsYa5TV1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726282AbgLZOHd (ORCPT + 99 others); Sat, 26 Dec 2020 09:07:33 -0500 Received: from mx-rz-1.rrze.uni-erlangen.de ([131.188.11.20]:45107 "EHLO mx-rz-1.rrze.uni-erlangen.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726265AbgLZOHc (ORCPT ); Sat, 26 Dec 2020 09:07:32 -0500 Received: from mx-rz-smart.rrze.uni-erlangen.de (mx-rz-smart.rrze.uni-erlangen.de [IPv6:2001:638:a000:1025::1e]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by mx-rz-1.rrze.uni-erlangen.de (Postfix) with ESMTPS id 4D35GL3jYmz8v53; Sat, 26 Dec 2020 15:06:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fau.de; s=fau-2013; t=1608991610; bh=9CoTgr9jhIVIzQsReVlJlsXyk5irSU1vGHHGHILF/Co=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:To:CC: Subject; b=YsYa5TV1nAaXWrXSXvd9q4ZWw0dpVyYpZEbVWHft4Gp1KB5hX1PmOtjemGjv2uWB+ upigNSS+uDB08Ugo13AJSLs0MNanqOnTfxyEektg6CpS0jkLYcY4BpGCyJhMsBgajb pGNG6BIJAzuU2SXOK3orkJstxFNRD9L6EAnlG53dHeMZtCaRG4pd7LG4OK9G9HhiMc nQJT808KeQfWFCPSIHlpX86lrRWLDtSDHPU8WLTPWjhKnXe7wft+pWnWu6rvsaML23 PM8GP1qSy4bsA28RbwQeI7bTijQ4IFEudo6bF2lVzi2gv9rL/Fr4VYhIVjEgUuvZ2i LSgxGarnVmqcA== X-Virus-Scanned: amavisd-new at boeck2.rrze.uni-erlangen.de (RRZE) X-RRZE-Flag: Not-Spam X-RRZE-Submit-IP: 2a02:810d:8080:2d9f::1276 Received: from x1.nicolai.tech (unknown [IPv6:2a02:810d:8080:2d9f::1276]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: U2FsdGVkX19T4Hgasqy+FbjjZUypsD2YCRCr2depchM=) by smtp-auth.uni-erlangen.de (Postfix) with ESMTPSA id 4D35GJ0xDGz8sYn; Sat, 26 Dec 2020 15:06:48 +0100 (CET) From: Nicolai Fischer To: linux-kernel@vger.kernel.org Cc: apw@canonical.com, johannes.czekay@fau.de, linux-kernel@i4.cs.fau.de, joe@perches.com, akpm@linux-foundation.org Subject: [PATCH v2 4/4] checkpatch: kconfig: clarify warning for paragraph length Date: Sat, 26 Dec 2020 15:05:11 +0100 Message-Id: <20201226140511.662368-5-nicolai.fischer@fau.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201226140511.662368-1-nicolai.fischer@fau.de> References: <20201226140511.662368-1-nicolai.fischer@fau.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently checkpatch displays a warning if it detects a help text of a Kconfig option which is too short. However the warning does not contain any further information. This adds the expected and currently detected number of lines to the warning, which makes it more obvious why checkpatch is warning. Furthermore this makes it easier to quickly identify false positives, e.g. when a help message contains a Kconfig keyword and falsely triggers checkpatch to stop counting lines, it will be more apparent, because the user can see how many lines they wrote and how many of those were counted correctly. Co-developed-by: Johannes Czekay Signed-off-by: Johannes Czekay Signed-off-by: Nicolai Fischer --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index aa2205ee9ab8..bc363933e0aa 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3356,7 +3356,7 @@ sub process { } if ($is_start && $is_end && $length < $min_conf_desc_length) { WARN("CONFIG_DESCRIPTION", - "please write a paragraph that describes the config symbol fully\n" . $herecurr); + "please write a paragraph ($length/$min_conf_desc_length lines) that describes the config symbol fully\n" . $herecurr); } if ($is_start && $is_end && defined $help_stat_real) { WARN("CONFIG_DESCRIPTION", -- 2.29.2