Skip to contentSkip to conversation

docs: don't include Documentation/Kconfig twice

PATCH In review Sergei Trofimovich 3 participants 3 messages Mar 7, 2021 – Mar 15, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: don't include Documentation/Kconfig twice

Before the change there were two inclusions of Documentation/Kconfig:
lib/Kconfig.debug:source "Documentation/Kconfig"
Kconfig: source "Documentation/Kconfig"

Kconfig also included 'source "lib/Kconfig.debug"'.

Noticed as two 'make menuconfig' entries in both top level menu and in 'Kernel hacking' menu. The patch keeps entries only in 'Kernel hacking'.

CC Mauro Carvalho Chehab <[email protected]>
CC Jonathan Corbet <[email protected]>
---
 Kconfig | 2 --
 1 file changed, 2 deletions(-)
Kconfig +0 -2
index 745bc773f567..97ed6389c921 100644
@@ -28,5 +28,3 @@ source "crypto/Kconfig"
 source "lib/Kconfig"
 
 source "lib/Kconfig.debug"
-
-source "Documentation/Kconfig"
Signature · 1 line
2.30.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Sergei Trofimovich

Before the change there were two inclusions of Documentation/Kconfig:
lib/Kconfig.debug:source "Documentation/Kconfig"
Kconfig: source "Documentation/Kconfig"

Kconfig also included 'source "lib/Kconfig.debug"'.

Quoted 7 lines

Noticed as two 'make menuconfig' entries in both top level menu and in 'Kernel hacking' menu. The patch keeps entries only in 'Kernel hacking'.

CC Mauro Carvalho Chehab <[email protected]>
CC Jonathan Corbet <[email protected]>

Hi,
OK, it shouldn't be there in 2 places.

The current usage is good under Kernel Hacking (development), but I can easily foresee cases where we would want user-selectable Documentation/Kconfig options, so IMO it would be better to be more independent (i.e., not in lib/Kconfig.debug).

Anyway, for either way that it's fixed:

Quoted 10 lines
---
 Kconfig | 2 --
 1 file changed, 2 deletions(-)
Kconfig +0 -0
index 745bc773f567..97ed6389c921 100644

Kconfig source "crypto/Kconfig" · line 32

Quoted 5 lines
Kconfig +0 -2
@@ -28,5 +28,3 @@ source "crypto/Kconfig"
 source "lib/Kconfig"
 
 source "lib/Kconfig.debug"
-
-source "Documentation/Kconfig"

thanks.

Signature · 1 line
~Randy
#2 lore raw
In reply to Sergei Trofimovich
Quoted 29 lines · Sergei Trofimovich

Before the change there were two inclusions of Documentation/Kconfig:
lib/Kconfig.debug:source "Documentation/Kconfig"
Kconfig: source "Documentation/Kconfig"

Kconfig also included 'source "lib/Kconfig.debug"'.

Noticed as two 'make menuconfig' entries in both top level menu and in 'Kernel hacking' menu. The patch keeps entries only in 'Kernel hacking'.

CC Mauro Carvalho Chehab <[email protected]>
CC Jonathan Corbet <[email protected]>
---
 Kconfig | 2 --
 1 file changed, 2 deletions(-)
Kconfig +0 -2
index 745bc773f567..97ed6389c921 100644
@@ -28,5 +28,3 @@ source "crypto/Kconfig"
 source "lib/Kconfig"
 
 source "lib/Kconfig.debug"
-
-source "Documentation/Kconfig"
Signature · 1 line
2.30.1

I agree with not including it twice. Under "kernel hacking" seems like the wrong place to keep it, though. There's a lot more than kernel hacking in the kernel docs, I don't think we should bury it in quite that way. So I'd delete the other one.

Thanks,

jon