From b4f34f0b662fd7c1a1d185527c31570f68e3ce57 Mon Sep 17 00:00:00 2001 From: Peter Foley Date: Mon, 16 Jan 2023 17:58:10 -0500 Subject: [PATCH] Documentation: Avoid duplicate Kconfig inclusion Documentation/Kconfig is already included from top-level, avoid including it again from lib/Kconfig.debug. Signed-off-by: Peter Foley Acked-by: Randy Dunlap Tested-by: Randy Dunlap Link: https://lore.kernel.org/r/20230114-doc-v2-1-853a8434ac95@pefoley.com Signed-off-by: Jonathan Corbet --- Documentation/Kconfig | 10 ++++++++-- lib/Kconfig.debug | 2 -- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Documentation/Kconfig b/Documentation/Kconfig index 252bfc1..3a0e7ac 100644 --- a/Documentation/Kconfig +++ b/Documentation/Kconfig @@ -1,6 +1,9 @@ +if COMPILE_TEST + +menu "Documentation" + config WARN_MISSING_DOCUMENTS bool "Warn if there's a missing documentation file" - depends on COMPILE_TEST help It is not uncommon that a document gets renamed. This option makes the Kernel to check for missing dependencies, @@ -11,7 +14,6 @@ config WARN_MISSING_DOCUMENTS config WARN_ABI_ERRORS bool "Warn if there are errors at ABI files" - depends on COMPILE_TEST help The files under Documentation/ABI should follow what's described at Documentation/ABI/README. Yet, as they're manually @@ -20,3 +22,7 @@ config WARN_ABI_ERRORS scripts/get_abi.pl. Add a check to verify them. If unsure, select 'N'. + +endmenu + +endif diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 881c3f8..4bafc5c 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -2872,6 +2872,4 @@ config RUST_BUILD_ASSERT_ALLOW endmenu # "Rust" -source "Documentation/Kconfig" - endmenu # Kernel hacking -- 2.7.4