Skip to content

Commit b4f34f0

Browse files
pefoley2Jonathan Corbet
authored andcommitted
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 <[email protected]> Acked-by: Randy Dunlap <[email protected]> Tested-by: Randy Dunlap <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Corbet <[email protected]>
1 parent 8bc7f39 commit b4f34f0

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Documentation/Kconfig

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
if COMPILE_TEST
2+
3+
menu "Documentation"
4+
15
config WARN_MISSING_DOCUMENTS
26
bool "Warn if there's a missing documentation file"
3-
depends on COMPILE_TEST
47
help
58
It is not uncommon that a document gets renamed.
69
This option makes the Kernel to check for missing dependencies,
@@ -11,7 +14,6 @@ config WARN_MISSING_DOCUMENTS
1114

1215
config WARN_ABI_ERRORS
1316
bool "Warn if there are errors at ABI files"
14-
depends on COMPILE_TEST
1517
help
1618
The files under Documentation/ABI should follow what's
1719
described at Documentation/ABI/README. Yet, as they're manually
@@ -20,3 +22,7 @@ config WARN_ABI_ERRORS
2022
scripts/get_abi.pl. Add a check to verify them.
2123

2224
If unsure, select 'N'.
25+
26+
endmenu
27+
28+
endif

lib/Kconfig.debug

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2872,6 +2872,4 @@ config RUST_BUILD_ASSERT_ALLOW
28722872

28732873
endmenu # "Rust"
28742874

2875-
source "Documentation/Kconfig"
2876-
28772875
endmenu # Kernel hacking

0 commit comments

Comments
 (0)