Received: by 10.223.176.5 with SMTP id f5csp1135881wra; Wed, 31 Jan 2018 01:44:19 -0800 (PST) X-Google-Smtp-Source: AH8x227wkQId+QyrzGd42bkP+G2AN5690u/JDUgRKDriDuMpkhaCGTL4WypzZRBCExnZWr+Dw6Kc X-Received: by 2002:a17:902:968b:: with SMTP id n11-v6mr28269323plp.168.1517391859360; Wed, 31 Jan 2018 01:44:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517391859; cv=none; d=google.com; s=arc-20160816; b=eNM3WHOBq2hOtrZ359HcL89+Phfz5Liv8x796zVw7A1kjDEwe0r7WFFP+fYV6Sk2y4 ZbnkLJ1hbsQ1VDb24LIuWpBOZD9DyJ/IuhZ+jFK7v4N4jxs2WZl2tGhtuFJF5x5kgY+3 vK+Ewbh/jfEw2Hg93NS2LP03EGP4u4dczE2iBE4Wu6OJhJVwK3bWKR3/7YxUexCQX28o n9AOLtx7daNYGiAPL/wewJUxUrDlfaPUC+Ip1RXLi84IxkJM5JBC6V2vvEI/cnnZhVnj upys3N/Am1PnnuF0Ek8rIvei7suqMtMnbY+fDggALifMIpIk+DBQZgiW7LXDQThlCsfb bCZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=1nKWCK5/9CoSYcCrJsGZw/p5ijFWcBiANc+JwfRDZZg=; b=lEbYQW8pzC8ctmnZPUMMvzCZgGj0IuDyJyBQvqY3AzsHpkQyB4U516ar5sKfw0kXnb lmNwPJN/rBIg1p5JFkTonbonKBHYBXcgGR1IloxH7v/qhYDgiXC9oC9JZf/5vaA05/1C BPH2Cp1sa8gfZpE8pxoELUQMXviz48qKShjqogu4JMag2YLrXaAjXeYOwQzw1alSpYqQ Vt2OCq0wabgBO9D7mDC+1QWl6tFCbbRmJLi6d+a1+yOnWguiZJOSWPOj013z3oSXB4mY 5NaTlE9NdXmF5A9UfPIR+7Q2CrULXVJR1OqHyH5fnvNA40MYb4dvAObWcrUsqilk7JN2 4Kjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KKZYbO8c; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l4-v6si1679644pln.619.2018.01.31.01.44.04; Wed, 31 Jan 2018 01:44:19 -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=@gmail.com header.s=20161025 header.b=KKZYbO8c; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753897AbeAaJgy (ORCPT + 99 others); Wed, 31 Jan 2018 04:36:54 -0500 Received: from mail-lf0-f68.google.com ([209.85.215.68]:44514 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753822AbeAaJgR (ORCPT ); Wed, 31 Jan 2018 04:36:17 -0500 Received: by mail-lf0-f68.google.com with SMTP id v188so19655887lfa.11; Wed, 31 Jan 2018 01:36:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1nKWCK5/9CoSYcCrJsGZw/p5ijFWcBiANc+JwfRDZZg=; b=KKZYbO8cT6E3u547rQsyalXt42WlLpfgcLs7EDl/EY1pp87HASe0TuM9iQnl7FKA+A PKcQnyX+Z5jFx35fn2wILH3pGiP2NqzwLSC8K24aFGZsk2Tba6UdzGwvScZtrWbOs8JY lF701ynscxq9BXqd8kM7W0PkNHTvXpTprpREqXRXxmS3Po4yuAR5KcL+/kM7K6CCAjQL GNEmT6k4NdXaF3ieqf/Ek3F5VQbX62nAcrDo9FwTSdjiDQ1Q+nH8dlSgByhcVHPvPJE1 7fEXc6a1YoGF4DOdWvUF+u7C8u+QMru62+RQULu6Jd1cd/gk63lWT7uHLUyQsg7PnuYO y3zg== 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:in-reply-to :references; bh=1nKWCK5/9CoSYcCrJsGZw/p5ijFWcBiANc+JwfRDZZg=; b=OUKQRhfB0XyQVP35uLxCcexgtT4eqgbBnY97k25giZLIeXcfPbOEsPznljLmhbKl85 SVyQ56+uNhMIHMrW0Et6kTKPdRTNdu9zSpr3GW7J3WSwljHuRsgS/kSkrH1+4Html2nB kYWVzsVcGR+SzXmWmOJIdNpVEDEyHO2AVgUiu5q9mI+YdTpTtBh2SEX3NQb5it1IwBKK /GhS3h6k79EHfiHn8gE62H45cuYtcbXAMvRTipJietvv3sAxbvmi9UU+1L7BAm45yv/g ZeUeYiorMUB2a8XXWiWMAFr4Q0udRfA+6179QOhuuGOnLKR9PEjwBmNNo0WwkmC2s2X8 TXMw== X-Gm-Message-State: AKwxytdt6IcG+fDJXX9LtlRzp8fOzkU0iubs+tbxy/nQgiYWULtKuIou nj38hoIJLmErCH+ARoUb6Cz1iRrZGCw= X-Received: by 10.25.233.140 with SMTP id j12mr19329014lfk.0.1517391376129; Wed, 31 Jan 2018 01:36:16 -0800 (PST) Received: from huvuddator.lan (ua-213-113-106-221.cust.bredbandsbolaget.se. [213.113.106.221]) by smtp.gmail.com with ESMTPSA id i18sm3155604ljd.27.2018.01.31.01.36.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Jan 2018 01:36:15 -0800 (PST) From: Ulf Magnusson To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, yamada.masahiro@socionext.com, mcgrof@kernel.org, rdunlap@infradead.org, dan.carpenter@oracle.com, pebolle@tiscali.nl, Ulf Magnusson Subject: [PATCH 11/11] kconfig: Warn if help text is blank Date: Wed, 31 Jan 2018 10:34:30 +0100 Message-Id: <20180131093434.20050-12-ulfalizer@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180131093434.20050-1-ulfalizer@gmail.com> References: <20180131093434.20050-1-ulfalizer@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Blank help texts are probably either a typo, a Kconfig misunderstanding, or some kind of half-committing to adding a help text (in which case a TODO comment would be clearer, if the help text really can't be added right away). Best to flag them, IMO. Example warning: drivers/mmc/host/Kconfig:877: warning: 'MMC_TOSHIBA_PCI' defined with blank help text Signed-off-by: Ulf Magnusson --- scripts/kconfig/zconf.y | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/kconfig/zconf.y b/scripts/kconfig/zconf.y index 21ce883e5d9e..4be98050b961 100644 --- a/scripts/kconfig/zconf.y +++ b/scripts/kconfig/zconf.y @@ -436,6 +436,12 @@ help: help_start T_HELPTEXT zconfprint("warning: '%s' defined with more than one help text -- only the last one will be used", current_entry->sym->name ?: ""); } + + /* Is the help text empty or all whitespace? */ + if ($2[strspn($2, " \f\n\r\t\v")] == '\0') + zconfprint("warning: '%s' defined with blank help text", + current_entry->sym->name ?: ""); + current_entry->help = $2; }; -- 2.14.1