From patchwork Mon Dec 9 08:19:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Hebb X-Patchwork-Id: 11278555 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5DD4013B6 for ; Mon, 9 Dec 2019 08:19:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3B6BA205ED for ; Mon, 9 Dec 2019 08:19:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kXKonuv8" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727044AbfLIITZ (ORCPT ); Mon, 9 Dec 2019 03:19:25 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:47011 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726377AbfLIITZ (ORCPT ); Mon, 9 Dec 2019 03:19:25 -0500 Received: by mail-pf1-f193.google.com with SMTP id y14so6800698pfm.13; Mon, 09 Dec 2019 00:19:25 -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:mime-version :content-transfer-encoding; bh=BW2JC8CibFxf+Dge/CzEZTyOy7IPvbzIRB6gv0bABEo=; b=kXKonuv8thAwKbXslv4/2dVUyz7NBwJgHDZq9rZwN3i7FEgU7x9urLVG5NeDV4AUz1 eZ764Sgu6QA6wz0cmM2L6DlxMCCAUrZEoJXbYTVqtOfiP5BO9lVsWMERJexyq2WVMbY+ vYrFOJMyjKCbAsDfZFybEYIofpuZRw/AfBwt6mpTtz1wcLAxljpdY4nB1u3TAiSOqQ24 RZoo/Xq4zf8KC6/q3joShmpK8wp+duR/k7NGNl1bJ8necOcMzyUvMd+GQlvjXHG8YKLX OpwTbDCV2zJuFWQmZ7E8/OeZBiOLx5cHZq0nBZYXoekchBxBPyKsS9RpV0myvQh4FPTR SxwQ== 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:mime-version :content-transfer-encoding; bh=BW2JC8CibFxf+Dge/CzEZTyOy7IPvbzIRB6gv0bABEo=; b=GnNQ252JLqAkgSd6r6vBVYnbVRkYVxm0xTmBhItqSGCpc5YWjHm92zQrNx16p6nBxN zEJ8iqDRNRC/ilWgJ6HXtjN0y/nH1VmDBXmTPhir/lN7rsL7JA0Jawbw0YTdP5GFzWru 9wHPKYXgf6kw0Cfb65fnVnytB8fwmwSmRfHPHEFZ4DjTSMyGJeR7zijS2TKxc5IGHdB5 pq82ZT2h5mJfbeVYgbA7KJOV2chXrE0vSNsnqtMpYZljJnp49mycBl2lmUtSmzkVnzGP NPTiHLgQO6W/JPeKnF4yEoLm1n0moLhteCkfFHD04+E73/ZmTN9x9laDPDDsZWobaeMi D+6g== X-Gm-Message-State: APjAAAXiSWrScZUSyhwj7oNw59vEeKCe6CeFRzmsNbhbSnD/+CpMsAsY na2rdoU4pzaeezdRkjFGnSIv+3MWieM= X-Google-Smtp-Source: APXvYqxglM6pH30hxnbVxJcIrTmAVwuGTxn/IVRAvqblND7gJtES4K9XiNLt6pRrVrJrAV0URUep/g== X-Received: by 2002:a65:6898:: with SMTP id e24mr18234471pgt.59.1575879564422; Mon, 09 Dec 2019 00:19:24 -0800 (PST) Received: from glados.lan ([2601:647:4c01:6541:fa16:54ff:fed1:1bd6]) by smtp.gmail.com with ESMTPSA id u2sm23810375pgc.19.2019.12.09.00.19.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2019 00:19:23 -0800 (PST) From: Thomas Hebb To: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Cc: Thomas Hebb Subject: [PATCH 0/4] kconfig: rework symbol help text Date: Mon, 9 Dec 2019 00:19:15 -0800 Message-Id: X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org This series fixes several issues with help text generated by Kconfig, mainly affecting symbols that are defined in multiple places. Although results of these patches are somewhat visible for the symbols in Linux, what prompted me to write the series was working on U-Boot, which also uses Kconfig and makes very heavy use of multiple definitions (e.g. for overriding defaults). I have provided Linux examples where I could find them, but the example for the biggest patch (the first one) is taken from U-Boot because it was more illustrative than anything I could find in Linux. Thomas Hebb (4): kconfig: list all definitions of a symbol in help text kconfig: don't crash on NULL expressions in expr_eq() kconfig: distinguish between dependencies and visibility in help text kconfig: fix nesting of symbol help text scripts/kconfig/expr.c | 8 +++-- scripts/kconfig/expr.h | 1 + scripts/kconfig/menu.c | 75 ++++++++++++++++++++++++------------------ 3 files changed, 50 insertions(+), 34 deletions(-)