Skip to contentSkip to conversation

2.6.22-git* regression: Kconfig prompts without help text

DISCUSSION Stefan Richter 5 participants 13 messages Jul 16, 2007 – Jul 19, 2007

Subsystems (10)
lore
Share & tools
lore
#0 lore raw

It is an error to add visible Kconfig options without help text. Among them are the new "menuconfig" options. Jan obviously never uses "make oldconfig". Most of these options were added after 2.6.22:

BLK_DEV
HID_SUPPORT
INSTRUMENTATION
MACINTOSH_DRIVERS
MISC_DEVICES
USB_SUPPORT

Here are suggestions for help texts. Please verify if they are correct and check whether there are more new (menuconfig) options without help texts.

BLK_DEV
Say Y here to get to see options for various different block device drivers. This option alone does not add code to the kernel.

If you say N, options will be skipped and disabled. Hence say Y.

HID_SUPPORT
Say Y here to get to see options for various computer--human interface device drivers. This option alone does not add code to the kernel.

If you say N, options will be skipped and disabled. Hence say Y.

INSTRUMENTATION
Say Y here to get to see options related to performance measurement, debugging, and testing. This option alone does not add code to the kernel.

If you say N, options will be skipped and disabled.

MACINTOSH_DRIVERS
Say Y here to get to see options for devices used with Macintosh computers, both PPC and Intel based. This option alone does not add code to the kernel.

If you say N, options will be skipped and disabled.

MISC_DEVICES
Say Y here to get to see options for device drivers from various different categories. This option alone does not add code to the kernel.

If you say N, options will be skipped and disabled. Hence say Y.

USB_SUPPORT
This option adds core support for Universal Serial Bus (USB). You will also need drivers from the following menu to make use of it.

PS:

I believe one possible *bug* of this menuconfig stuff is that if (1.) user X disables menuconfig A in linux-2.6.x because nothing interesting for him is in there, (2.) developer Y adds something very interesting in menu A in linux-2.6.x+1, --> (3.) user X will miss this new option when he runs "make oldconfig" when switching to linux-2.6.x+1 because everything between 'if A'...'endif # A' will be invisible and disabled.

Signature · 3 lines
Stefan Richter
-=====-=-=== -=== =----
http://arcgraph.de/sr/
#1 lore raw

Hi,

Quoted 4 lines · Stefan Richter

It is an error to add visible Kconfig options without help text. Among them are the new "menuconfig" options. Jan obviously never uses "make oldconfig".

Untrue. Users of menuconfig/xconfig/gconfig who do not know what an item is supposed to do would not get any helptext either. It's just that I did not quite know what helptext to put there besides some trivial "enable this to see more fluffy options from this category". Feel free to add Blame-From: <srichter> :) But see below.

Quoted 9 lines

Most of these options were added after 2.6.22:

BLK_DEV
HID_SUPPORT
INSTRUMENTATION
MACINTOSH_DRIVERS
MISC_DEVICES
USB_SUPPORT

Quoted 3 lines

Here are suggestions for help texts. Please verify if they are correct and check whether there are more new (menuconfig) options without help texts.

Other config options without text include:

CRYPTO_HW       (b511431d85948823ec58639bd3137b910964be34)
AUXDISPLAY      (f5920969fb9e29c9d60568864d0a56fe85e8f4b6)
VIRTUALIZATION  (de062065a5293d8f434acb2d6ba5df87ad76bbd9)
ATM_DRIVERS     (4151ce3159c18a990da7fd6f0fe36c73d1c40f87)
NETDEV_1000     (f30486d57bceec2364aa696403d64429ada61b60)
NETDEV_10000    (f30486d57bceec2364aa696403d64429ada61b60)

Thanks for the starting help texts. I have produced a cumulative patch with both yours and the extra ones listed above. Can we somehow sneak this directly in without split-to-maintainers? tis' just some help text. (Patch below)

Quoted 8 lines

PS:

I believe one possible *bug* of this menuconfig stuff is that if (1.) user X disables menuconfig A in linux-2.6.x because nothing interesting for him is in there, (2.) developer Y adds something very interesting in menu A in linux-2.6.x+1, --> (3.) user X will miss this new option when he runs "make oldconfig" when switching to linux-2.6.x+1 because everything between 'if A'...'endif # A' will be invisible and disabled.

If I once said "I don't want no USB", I do not want to be prompted in a later version for USB_COFFEE_PAD. :)

Jan
===

Quoted 1 line
Quoted 1 line

add-help-texts-to-textless-menuconfig-objects.diff <<

Add some help texts to recently-introduced kconfig items

---
 arch/i386/Kconfig          |    5 +++++
 drivers/atm/Kconfig        |    5 +++++
 drivers/auxdisplay/Kconfig |    5 +++++
 drivers/block/Kconfig      |    6 ++++++
 drivers/crypto/Kconfig     |    5 +++++
 drivers/hid/Kconfig        |    5 +++++
 drivers/kvm/Kconfig        |    5 +++++
 drivers/macintosh/Kconfig  |    6 ++++++
 drivers/misc/Kconfig       |    5 +++++
 drivers/net/Kconfig        |   15 +++++++++++++++
 drivers/usb/Kconfig        |    3 +++
 11 files changed, 65 insertions(+)
arch/i386/Kconfig +5 -0
Index: linux-2.6.23/arch/i386/Kconfig
===================================================================
@@ -1216,6 +1216,11 @@ menuconfig INSTRUMENTATION
 	bool "Instrumentation Support"
 	depends on EXPERIMENTAL
 	default y
+	---help---
+	Say Y here to get to see options related to performance measurement,
+	debugging, and testing. This option alone does not add any kernel code.
+
+	If you say N, all options in this submenu will be skipped and disabled.
 
 if INSTRUMENTATION
 
drivers/atm/Kconfig +5 -0
Index: linux-2.6.23/drivers/atm/Kconfig
===================================================================
@@ -6,6 +6,11 @@ menuconfig ATM_DRIVERS
 	bool "ATM drivers"
 	depends on NETDEVICES && ATM
 	default y
+	---help---
+	Say Y here to get to see options for Asynchronous Transfer Mode
+	device drivers. This option alone does not add any kernel code.
+
+	If you say N, all options in this submenu will be skipped and disabled.
 
 if ATM_DRIVERS && NETDEVICES && ATM
 
drivers/auxdisplay/Kconfig +5 -0
Index: linux-2.6.23/drivers/auxdisplay/Kconfig
===================================================================
@@ -8,6 +8,11 @@
 menuconfig AUXDISPLAY
 	depends on PARPORT
 	bool "Auxiliary Display support"
+	---help---
+	Say Y here to get to see options for auxiliary display drivers.
+	This option alone does not add any kernel code.
+
+	If you say N, all options in this submenu will be skipped and disabled.
 
 if AUXDISPLAY && PARPORT
 
drivers/block/Kconfig +6 -0
Index: linux-2.6.23/drivers/block/Kconfig
===================================================================
@@ -6,6 +6,12 @@ menuconfig BLK_DEV
 	bool "Block devices"
 	depends on BLOCK
 	default y
+	---help---
+	Say Y here to get to see options for various different block device
+	drivers. This option alone does not add any kernel code.
+
+	If you say N, all options in this submenu will be skipped and disabled;
+	only do this if you know what you are doing.
 
 if BLK_DEV
 
drivers/crypto/Kconfig +5 -0
Index: linux-2.6.23/drivers/crypto/Kconfig
===================================================================
@@ -2,6 +2,11 @@
 menuconfig CRYPTO_HW
 	bool "Hardware crypto devices"
 	default y
+	---help---
+	Say Y here to get to see options for hardware crypto devices and
+	processors. This option alone does not add any kernel code.
+
+	If you say N, all options in this submenu will be skipped and disabled.
 
 if CRYPTO_HW
 
drivers/hid/Kconfig +5 -0
Index: linux-2.6.23/drivers/hid/Kconfig
===================================================================
@@ -5,6 +5,11 @@ menuconfig HID_SUPPORT
 	bool "HID Devices"
 	depends on INPUT
 	default y
+	---help---
+	Say Y here to get to see options for various computer-human interface
+	device drivers. This option alone does not add any kernel code.
+
+	If you say N, all options in this submenu will be skipped and disabled.
 
 if HID_SUPPORT
 
drivers/kvm/Kconfig +5 -0
Index: linux-2.6.23/drivers/kvm/Kconfig
===================================================================
@@ -5,6 +5,11 @@ menuconfig VIRTUALIZATION
 	bool "Virtualization"
 	depends on X86
 	default y
+	---help---
+	Say Y here to get to see options for virtualization guest drivers.
+	This option alone does not add any kernel code.
+
+	If you say N, all options in this submenu will be skipped and disabled.
 
 if VIRTUALIZATION
 
drivers/macintosh/Kconfig +6 -0
Index: linux-2.6.23/drivers/macintosh/Kconfig
===================================================================
@@ -3,6 +3,12 @@ menuconfig MACINTOSH_DRIVERS
 	bool "Macintosh device drivers"
 	depends on PPC || MAC || X86
 	default y if (PPC_PMAC || MAC)
+	---help---
+	Say Y here to get to see options for devices used with Macintosh
+	computers, both PPC and Intel based. This option alone does not add
+	any kernel code.
+
+	If you say N, all options in this submenu will be skipped and disabled.
 
 if MACINTOSH_DRIVERS
 
drivers/misc/Kconfig +5 -0
Index: linux-2.6.23/drivers/misc/Kconfig
===================================================================
@@ -5,6 +5,11 @@
 menuconfig MISC_DEVICES
 	bool "Misc devices"
 	default y
+	---help---
+	Say Y here to get to see options for device drivers from various
+	different categories. This option alone does not add any kernel code.
+
+	If you say N, all options in this submenu will be skipped and disabled.
 
 if MISC_DEVICES
 
drivers/net/Kconfig +15 -0
Index: linux-2.6.23/drivers/net/Kconfig
===================================================================
@@ -1923,6 +1923,16 @@ menuconfig NETDEV_1000
 	bool "Ethernet (1000 Mbit)"
 	depends on !UML
 	default y
+	---help---
+	Ethernet (also called IEEE 802.3 or ISO 8802-2) is the most common
+	type of Local Area Network (LAN) in universities and companies.
+
+	Say Y here to get to see options for Gigabit Ethernet drivers.
+	This option alone does not add any kernel code.
+	Note that drivers supporting both 100 and 1000 MBit may be listed
+	under "Ethernet (10 or 100MBit)" instead.
+
+	If you say N, all options in this submenu will be skipped and disabled.
 
 if NETDEV_1000
 
@@ -2294,6 +2304,11 @@ menuconfig NETDEV_10000
 	bool "Ethernet (10000 Mbit)"
 	depends on !UML
 	default y
+	---help---
+	Say Y here to get to see options for 10 Gigabit Ethernet drivers.
+	This option alone does not add any kernel code.
+
+	If you say N, all options in this submenu will be skipped and disabled.
 
 if NETDEV_10000
 
drivers/usb/Kconfig +3 -0
Index: linux-2.6.23/drivers/usb/Kconfig
===================================================================
@@ -6,6 +6,9 @@ menuconfig USB_SUPPORT
 	bool "USB support"
 	depends on HAS_IOMEM
 	default y
+	---help---
+	This option adds core support for Universal Serial Bus (USB).
+	You will also need drivers from the following menu to make use of it.
 
 if USB_SUPPORT
 
#2 lore raw
Quoted 8 lines · Jan Engelhardt
Quoted 4 lines · Stefan Richter

It is an error to add visible Kconfig options without help text. Among them are the new "menuconfig" options. Jan obviously never uses "make oldconfig".

Untrue. Users of menuconfig/xconfig/gconfig who do not know what an item is supposed to do would not get any helptext either.

I mentioned 'make oldconfig' because there you can't get a preview of what other options you are perhaps about to enable or disable.

Quoted 3 lines

It's just that I did not quite know what helptext to put there besides some trivial "enable this to see more fluffy options from this category". Feel free to add Blame-From: <srichter> :)

Maybe I'm extraordinarily dumb, but I felt unable to determine for sure what consequences enabling or disabling some of those new prompts had when I ran 'make oldconfig' for the first time in a post-2.6.22 tree.

Will saying Y merely present further options, or will it actually cause something to be built?

Quoted 24 lines

But see below.

Quoted 9 lines

Most of these options were added after 2.6.22:

BLK_DEV
HID_SUPPORT
INSTRUMENTATION
MACINTOSH_DRIVERS
MISC_DEVICES
USB_SUPPORT

Quoted 3 lines

Here are suggestions for help texts. Please verify if they are correct and check whether there are more new (menuconfig) options without help texts.

Other config options without text include:

CRYPTO_HW       (b511431d85948823ec58639bd3137b910964be34)
AUXDISPLAY      (f5920969fb9e29c9d60568864d0a56fe85e8f4b6)
VIRTUALIZATION  (de062065a5293d8f434acb2d6ba5df87ad76bbd9)
ATM_DRIVERS     (4151ce3159c18a990da7fd6f0fe36c73d1c40f87)
NETDEV_1000     (f30486d57bceec2364aa696403d64429ada61b60)
NETDEV_10000    (f30486d57bceec2364aa696403d64429ada61b60)
Quoted 2 lines

Thanks for the starting help texts. I have produced a cumulative patch with both yours and the extra ones listed above.

Thanks for making an actual patch out of it and adding these other bits.

Quoted 13 lines

Can we somehow sneak
this directly in without split-to-maintainers? tis' just some help text. (Patch below)

Quoted 8 lines

PS:

I believe one possible *bug* of this menuconfig stuff is that if (1.) user X disables menuconfig A in linux-2.6.x because nothing interesting for him is in there, (2.) developer Y adds something very interesting in menu A in linux-2.6.x+1, --> (3.) user X will miss this new option when he runs "make oldconfig" when switching to linux-2.6.x+1 because everything between 'if A'...'endif # A' will be invisible and disabled.

Quoted 2 lines

If I once said "I don't want no USB", I do not want to be prompted in a later version for USB_COFFEE_PAD. :)

Sure, if I disable USB now I expect that I may possibly miss USB_COFFEE_PAD in 2.6.47. That wouldn't worry me.

But what about loosely defined categories like BLK_DEV, INSTRUMENTATION, MISC_DEVICES? What functionality will be provided by their suboptions in 2.6.47?

Signature · 3 lines
Stefan Richter
-=====-=-=== -=== =--=-
http://arcgraph.de/sr/
#3 lore raw
In reply to Jan Engelhardt
Quoted 52 lines · On Wed, 18 Jul 2007 17:18:34 +0200 (CEST) Jan Engelhardt wrote:

Hi,

Quoted 4 lines · Stefan Richter

It is an error to add visible Kconfig options without help text. Among them are the new "menuconfig" options. Jan obviously never uses "make oldconfig".

Untrue. Users of menuconfig/xconfig/gconfig who do not know what an item is supposed to do would not get any helptext either. It's just that I did not quite know what helptext to put there besides some trivial "enable this to see more fluffy options from this category". Feel free to add Blame-From: <srichter> :) But see below.

Quoted 9 lines

Most of these options were added after 2.6.22:

BLK_DEV
HID_SUPPORT
INSTRUMENTATION
MACINTOSH_DRIVERS
MISC_DEVICES
USB_SUPPORT

Quoted 3 lines

Here are suggestions for help texts. Please verify if they are correct and check whether there are more new (menuconfig) options without help texts.

Other config options without text include:

CRYPTO_HW       (b511431d85948823ec58639bd3137b910964be34)
AUXDISPLAY      (f5920969fb9e29c9d60568864d0a56fe85e8f4b6)
VIRTUALIZATION  (de062065a5293d8f434acb2d6ba5df87ad76bbd9)
ATM_DRIVERS     (4151ce3159c18a990da7fd6f0fe36c73d1c40f87)
NETDEV_1000     (f30486d57bceec2364aa696403d64429ada61b60)
NETDEV_10000    (f30486d57bceec2364aa696403d64429ada61b60)

Thanks for the starting help texts. I have produced a cumulative patch with both yours and the extra ones listed above. Can we somehow sneak this directly in without split-to-maintainers? tis' just some help text. (Patch below)

Quoted 8 lines

PS:

I believe one possible *bug* of this menuconfig stuff is that if (1.) user X disables menuconfig A in linux-2.6.x because nothing interesting for him is in there, (2.) developer Y adds something very interesting in menu A in linux-2.6.x+1, --> (3.) user X will miss this new option when he runs "make oldconfig" when switching to linux-2.6.x+1 because everything between 'if A'...'endif # A' will be invisible and disabled.

Quoted 7 lines

If I once said "I don't want no USB", I do not want to be prompted in a later version for USB_COFFEE_PAD. :)

Jan
===

Quoted 1 line
Quoted 1 line

add-help-texts-to-textless-menuconfig-objects.diff <<

Looks good to me except that help text should be indented by 2 more spaces according to CodingStyle.

Quoted 202 lines

Add some help texts to recently-introduced kconfig items

---
 arch/i386/Kconfig          |    5 +++++
 drivers/atm/Kconfig        |    5 +++++
 drivers/auxdisplay/Kconfig |    5 +++++
 drivers/block/Kconfig      |    6 ++++++
 drivers/crypto/Kconfig     |    5 +++++
 drivers/hid/Kconfig        |    5 +++++
 drivers/kvm/Kconfig        |    5 +++++
 drivers/macintosh/Kconfig  |    6 ++++++
 drivers/misc/Kconfig       |    5 +++++
 drivers/net/Kconfig        |   15 +++++++++++++++
 drivers/usb/Kconfig        |    3 +++
 11 files changed, 65 insertions(+)

Index: linux-2.6.23/arch/i386/Kconfig
===================================================================

arch/i386/Kconfig +5 -0
@@ -1216,6 +1216,11 @@ menuconfig INSTRUMENTATION
 	bool "Instrumentation Support"
 	depends on EXPERIMENTAL
 	default y
+	---help---
+	Say Y here to get to see options related to performance measurement,
+	debugging, and testing. This option alone does not add any kernel code.
+
+	If you say N, all options in this submenu will be skipped and disabled.
 
 if INSTRUMENTATION
 

Index: linux-2.6.23/drivers/atm/Kconfig
===================================================================

drivers/atm/Kconfig +5 -0
@@ -6,6 +6,11 @@ menuconfig ATM_DRIVERS
 	bool "ATM drivers"
 	depends on NETDEVICES && ATM
 	default y
+	---help---
+	Say Y here to get to see options for Asynchronous Transfer Mode
+	device drivers. This option alone does not add any kernel code.
+
+	If you say N, all options in this submenu will be skipped and disabled.
 
 if ATM_DRIVERS && NETDEVICES && ATM
 

Index: linux-2.6.23/drivers/auxdisplay/Kconfig
===================================================================

drivers/auxdisplay/Kconfig +5 -0
@@ -8,6 +8,11 @@
 menuconfig AUXDISPLAY
 	depends on PARPORT
 	bool "Auxiliary Display support"
+	---help---
+	Say Y here to get to see options for auxiliary display drivers.
+	This option alone does not add any kernel code.
+
+	If you say N, all options in this submenu will be skipped and disabled.
 
 if AUXDISPLAY && PARPORT
 

Index: linux-2.6.23/drivers/block/Kconfig
===================================================================

drivers/block/Kconfig +6 -0
@@ -6,6 +6,12 @@ menuconfig BLK_DEV
 	bool "Block devices"
 	depends on BLOCK
 	default y
+	---help---
+	Say Y here to get to see options for various different block device
+	drivers. This option alone does not add any kernel code.
+
+	If you say N, all options in this submenu will be skipped and disabled;
+	only do this if you know what you are doing.
 
 if BLK_DEV
 

Index: linux-2.6.23/drivers/crypto/Kconfig
===================================================================

drivers/crypto/Kconfig +5 -0
@@ -2,6 +2,11 @@
 menuconfig CRYPTO_HW
 	bool "Hardware crypto devices"
 	default y
+	---help---
+	Say Y here to get to see options for hardware crypto devices and
+	processors. This option alone does not add any kernel code.
+
+	If you say N, all options in this submenu will be skipped and disabled.
 
 if CRYPTO_HW
 

Index: linux-2.6.23/drivers/hid/Kconfig
===================================================================

drivers/hid/Kconfig +5 -0
@@ -5,6 +5,11 @@ menuconfig HID_SUPPORT
 	bool "HID Devices"
 	depends on INPUT
 	default y
+	---help---
+	Say Y here to get to see options for various computer-human interface
+	device drivers. This option alone does not add any kernel code.
+
+	If you say N, all options in this submenu will be skipped and disabled.
 
 if HID_SUPPORT
 

Index: linux-2.6.23/drivers/kvm/Kconfig
===================================================================

drivers/kvm/Kconfig +5 -0
@@ -5,6 +5,11 @@ menuconfig VIRTUALIZATION
 	bool "Virtualization"
 	depends on X86
 	default y
+	---help---
+	Say Y here to get to see options for virtualization guest drivers.
+	This option alone does not add any kernel code.
+
+	If you say N, all options in this submenu will be skipped and disabled.
 
 if VIRTUALIZATION
 

Index: linux-2.6.23/drivers/macintosh/Kconfig
===================================================================

drivers/macintosh/Kconfig +6 -0
@@ -3,6 +3,12 @@ menuconfig MACINTOSH_DRIVERS
 	bool "Macintosh device drivers"
 	depends on PPC || MAC || X86
 	default y if (PPC_PMAC || MAC)
+	---help---
+	Say Y here to get to see options for devices used with Macintosh
+	computers, both PPC and Intel based. This option alone does not add
+	any kernel code.
+
+	If you say N, all options in this submenu will be skipped and disabled.
 
 if MACINTOSH_DRIVERS
 

Index: linux-2.6.23/drivers/misc/Kconfig
===================================================================

drivers/misc/Kconfig +5 -0
@@ -5,6 +5,11 @@
 menuconfig MISC_DEVICES
 	bool "Misc devices"
 	default y
+	---help---
+	Say Y here to get to see options for device drivers from various
+	different categories. This option alone does not add any kernel code.
+
+	If you say N, all options in this submenu will be skipped and disabled.
 
 if MISC_DEVICES
 

Index: linux-2.6.23/drivers/net/Kconfig
===================================================================

drivers/net/Kconfig +15 -0
@@ -1923,6 +1923,16 @@ menuconfig NETDEV_1000
 	bool "Ethernet (1000 Mbit)"
 	depends on !UML
 	default y
+	---help---
+	Ethernet (also called IEEE 802.3 or ISO 8802-2) is the most common
+	type of Local Area Network (LAN) in universities and companies.
+
+	Say Y here to get to see options for Gigabit Ethernet drivers.
+	This option alone does not add any kernel code.
+	Note that drivers supporting both 100 and 1000 MBit may be listed
+	under "Ethernet (10 or 100MBit)" instead.
+
+	If you say N, all options in this submenu will be skipped and disabled.
 
 if NETDEV_1000
 
@@ -2294,6 +2304,11 @@ menuconfig NETDEV_10000
 	bool "Ethernet (10000 Mbit)"
 	depends on !UML
 	default y
+	---help---
+	Say Y here to get to see options for 10 Gigabit Ethernet drivers.
+	This option alone does not add any kernel code.
+
+	If you say N, all options in this submenu will be skipped and disabled.
 
 if NETDEV_10000
 

Index: linux-2.6.23/drivers/usb/Kconfig
===================================================================

drivers/usb/Kconfig menuconfig USB_SUPPORT · line 13

Quoted 8 lines
drivers/usb/Kconfig +3 -0
@@ -6,6 +6,9 @@ menuconfig USB_SUPPORT
 	bool "USB support"
 	depends on HAS_IOMEM
 	default y
+	---help---
+	This option adds core support for Universal Serial Bus (USB).
+	You will also need drivers from the following menu to make use of it.
 
 if USB_SUPPORT

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

#4 lore raw
Quoted 3 lines · Randy Dunlap

Looks good to me except that help text should be indented by 2 more spaces according to CodingStyle.

Who invented that rule anyway... the "---help---" marker (note the dashes) clearly separates things already.
Here you go.

===

Add some help texts to recently-introduced kconfig items

---
 arch/i386/Kconfig          |    5 +++++
 drivers/atm/Kconfig        |    5 +++++
 drivers/auxdisplay/Kconfig |    5 +++++
 drivers/block/Kconfig      |    6 ++++++
 drivers/crypto/Kconfig     |    5 +++++
 drivers/hid/Kconfig        |    5 +++++
 drivers/kvm/Kconfig        |    5 +++++
 drivers/macintosh/Kconfig  |    6 ++++++
 drivers/misc/Kconfig       |    5 +++++
 drivers/net/Kconfig        |   15 +++++++++++++++
 drivers/usb/Kconfig        |    3 +++
 11 files changed, 65 insertions(+)
arch/i386/Kconfig +5 -0
Index: linux-2.6.23/arch/i386/Kconfig
===================================================================
@@ -1216,6 +1216,11 @@ menuconfig INSTRUMENTATION
 	bool "Instrumentation Support"
 	depends on EXPERIMENTAL
 	default y
+	---help---
+	  Say Y here to get to see options related to performance measurement,
+	  debugging, and testing. This option alone does not add any kernel code.
+
+	  If you say N, all options in this submenu will be skipped and disabled.
 
 if INSTRUMENTATION
 
drivers/atm/Kconfig +5 -0
Index: linux-2.6.23/drivers/atm/Kconfig
===================================================================
@@ -6,6 +6,11 @@ menuconfig ATM_DRIVERS
 	bool "ATM drivers"
 	depends on NETDEVICES && ATM
 	default y
+	---help---
+	  Say Y here to get to see options for Asynchronous Transfer Mode
+	  device drivers. This option alone does not add any kernel code.
+
+	  If you say N, all options in this submenu will be skipped and disabled.
 
 if ATM_DRIVERS && NETDEVICES && ATM
 
drivers/auxdisplay/Kconfig +5 -0
Index: linux-2.6.23/drivers/auxdisplay/Kconfig
===================================================================
@@ -8,6 +8,11 @@
 menuconfig AUXDISPLAY
 	depends on PARPORT
 	bool "Auxiliary Display support"
+	---help---
+	  Say Y here to get to see options for auxiliary display drivers.
+	  This option alone does not add any kernel code.
+
+	  If you say N, all options in this submenu will be skipped and disabled.
 
 if AUXDISPLAY && PARPORT
 
drivers/block/Kconfig +6 -0
Index: linux-2.6.23/drivers/block/Kconfig
===================================================================
@@ -6,6 +6,12 @@ menuconfig BLK_DEV
 	bool "Block devices"
 	depends on BLOCK
 	default y
+	---help---
+	  Say Y here to get to see options for various different block device
+	  drivers. This option alone does not add any kernel code.
+
+	  If you say N, all options in this submenu will be skipped and disabled;
+	  only do this if you know what you are doing.
 
 if BLK_DEV
 
drivers/crypto/Kconfig +5 -0
Index: linux-2.6.23/drivers/crypto/Kconfig
===================================================================
@@ -2,6 +2,11 @@
 menuconfig CRYPTO_HW
 	bool "Hardware crypto devices"
 	default y
+	---help---
+	  Say Y here to get to see options for hardware crypto devices and
+	  processors. This option alone does not add any kernel code.
+
+	  If you say N, all options in this submenu will be skipped and disabled.
 
 if CRYPTO_HW
 
drivers/hid/Kconfig +5 -0
Index: linux-2.6.23/drivers/hid/Kconfig
===================================================================
@@ -5,6 +5,11 @@ menuconfig HID_SUPPORT
 	bool "HID Devices"
 	depends on INPUT
 	default y
+	---help---
+	  Say Y here to get to see options for various computer-human interface
+	  device drivers. This option alone does not add any kernel code.
+
+	  If you say N, all options in this submenu will be skipped and disabled.
 
 if HID_SUPPORT
 
drivers/kvm/Kconfig +5 -0
Index: linux-2.6.23/drivers/kvm/Kconfig
===================================================================
@@ -5,6 +5,11 @@ menuconfig VIRTUALIZATION
 	bool "Virtualization"
 	depends on X86
 	default y
+	---help---
+	  Say Y here to get to see options for virtualization guest drivers.
+	  This option alone does not add any kernel code.
+
+	  If you say N, all options in this submenu will be skipped and disabled.
 
 if VIRTUALIZATION
 
drivers/macintosh/Kconfig +6 -0
Index: linux-2.6.23/drivers/macintosh/Kconfig
===================================================================
@@ -3,6 +3,12 @@ menuconfig MACINTOSH_DRIVERS
 	bool "Macintosh device drivers"
 	depends on PPC || MAC || X86
 	default y if (PPC_PMAC || MAC)
+	---help---
+	  Say Y here to get to see options for devices used with Macintosh
+	  computers, both PPC and Intel based. This option alone does not add
+	  any kernel code.
+
+	  If you say N, all options in this submenu will be skipped and disabled.
 
 if MACINTOSH_DRIVERS
 
drivers/misc/Kconfig +5 -0
Index: linux-2.6.23/drivers/misc/Kconfig
===================================================================
@@ -5,6 +5,11 @@
 menuconfig MISC_DEVICES
 	bool "Misc devices"
 	default y
+	---help---
+	  Say Y here to get to see options for device drivers from various
+	  different categories. This option alone does not add any kernel code.
+
+	  If you say N, all options in this submenu will be skipped and disabled.
 
 if MISC_DEVICES
 
drivers/net/Kconfig +15 -0
Index: linux-2.6.23/drivers/net/Kconfig
===================================================================
@@ -1923,6 +1923,16 @@ menuconfig NETDEV_1000
 	bool "Ethernet (1000 Mbit)"
 	depends on !UML
 	default y
+	---help---
+	  Ethernet (also called IEEE 802.3 or ISO 8802-2) is the most common
+	  type of Local Area Network (LAN) in universities and companies.
+
+	  Say Y here to get to see options for Gigabit Ethernet drivers.
+	  This option alone does not add any kernel code.
+	  Note that drivers supporting both 100 and 1000 MBit may be listed
+	  under "Ethernet (10 or 100MBit)" instead.
+
+	  If you say N, all options in this submenu will be skipped and disabled.
 
 if NETDEV_1000
 
@@ -2294,6 +2304,11 @@ menuconfig NETDEV_10000
 	bool "Ethernet (10000 Mbit)"
 	depends on !UML
 	default y
+	---help---
+	  Say Y here to get to see options for 10 Gigabit Ethernet drivers.
+	  This option alone does not add any kernel code.
+
+	  If you say N, all options in this submenu will be skipped and disabled.
 
 if NETDEV_10000
 
drivers/usb/Kconfig +3 -0
Index: linux-2.6.23/drivers/usb/Kconfig
===================================================================
@@ -6,6 +6,9 @@ menuconfig USB_SUPPORT
 	bool "USB support"
 	depends on HAS_IOMEM
 	default y
+	---help---
+	  This option adds core support for Universal Serial Bus (USB).
+	  You will also need drivers from the following menu to make use of it.
 
 if USB_SUPPORT
 
#5 lore raw
Quoted 9 lines · On Wed, 18 Jul 2007 19:17:49 +0200 (CEST) Jan Engelhardt wrote:
Quoted 3 lines · Randy Dunlap

Looks good to me except that help text should be indented by 2 more spaces according to CodingStyle.

Who invented that rule anyway... the "---help---" marker (note the dashes) clearly separates things already.
Here you go.

I have no idea where it came from. (not me)

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

#6 lore raw
Quoted 10 lines · Randy Dunlap
Quoted 8 lines · Randy Dunlap
Quoted 3 lines

Looks good to me except that help text should be indented by 2 more spaces according to CodingStyle.

Who invented that rule anyway... the "---help---" marker (note the dashes) clearly separates things already.
Here you go.

I have no idea where it came from. (not me)

It was akpm:
http://linux.bkbits.net:8080/linux-2.6/Documentation/CodingStyle?PAGE=diffs&REV=1.5

Well, can we lift it?

Thanks,
Jan

#7 lore raw
Quoted 7 lines · Jan Engelhardt
Quoted 6 lines · Randy Dunlap
Quoted 6 lines · Randy Dunlap
Quoted 2 lines

Looks good to me except that help text should be indented by 2 more spaces according to CodingStyle.

Who invented that rule anyway... the "---help---" marker (note the dashes) clearly separates things already.
Here you go.

Quoted 6 lines
Quoted 1 line

I have no idea where it came from. (not me)

It was akpm:
http://linux.bkbits.net:8080/linux-2.6/Documentation/CodingStyle?PAGE=diffs&REV=1.5

Well, can we lift it?

I think that would only make sense if "---help---" is used (like you did) instead of the plain "help" string.

In the case of "---help---", it's OK with me not to be indented by 2 more spaces.

Signature · 2 lines
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
#8 lore raw
Quoted 10 lines · Randy Dunlap
Quoted 4 lines
Quoted 1 line

I have no idea where it came from. (not me)

It was akpm:
http://linux.bkbits.net:8080/linux-2.6/Documentation/CodingStyle?PAGE=diffs&REV=1.5

I think that would only make sense if "---help---" is used (like you did) instead of the plain "help" string.

In the case of "---help---", it's OK with me not to be indented by 2 more spaces.

===

kconf also accepts "---help---" besides the usual "help" keyword. If it is used, I think we can omit the extra spaces, because the dashes are visible enough a sash.

---
 Documentation/CodingStyle |   13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
Documentation/CodingStyle +6 -7
Index: linux-2.6.23/Documentation/CodingStyle
===================================================================
@@ -511,17 +511,16 @@ remember: "indent" is not a fix for bad 
 
 For all of the Kconfig* configuration files throughout the source tree,
 the indentation is somewhat different.  Lines under a "config" definition
-are indented with one tab, while help text is indented an additional two
-spaces.  Example:
+are indented with one tab. Example:
 
 config AUDIT
 	bool "Auditing support"
 	depends on NET
-	help
-	  Enable auditing infrastructure that can be used with another
-	  kernel subsystem, such as SELinux (which requires this for
-	  logging of avc messages output).  Does not do system-call
-	  auditing without CONFIG_AUDITSYSCALL.
+	---help---
+	Enable auditing infrastructure that can be used with another
+	kernel subsystem, such as SELinux (which requires this for
+	logging of avc messages output).  Does not do system-call
+	auditing without CONFIG_AUDITSYSCALL.
 
 Features that might still be considered unstable should be defined as
 dependent on "EXPERIMENTAL":
#9 lore raw
Quoted 10 lines · Jan Engelhardt
Quoted 8 lines · Randy Dunlap
Quoted 4 lines
Quoted 1 line

I have no idea where it came from. (not me)

It was akpm:
http://linux.bkbits.net:8080/linux-2.6/Documentation/CodingStyle?PAGE=diffs&REV=1.5

I think that would only make sense if "---help---" is used (like you did) instead of the plain "help" string.

Quoted 8 lines
Quoted 2 lines

In the case of "---help---", it's OK with me not to be indented by 2 more spaces.

===

kconf also accepts "---help---" besides the usual "help" keyword. If it is used, I think we can omit the extra spaces, because the dashes are visible enough a sash.

Nope, the majority of "---help---" users don't omit the spaces - and it's more readable with them.

Quoted 24 lines
---
 Documentation/CodingStyle |   13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

Index: linux-2.6.23/Documentation/CodingStyle
===================================================================

Documentation/CodingStyle +1 -5
@@ -511,17 +511,16 @@ remember: "indent" is not a fix for bad 
 
 For all of the Kconfig* configuration files throughout the source tree,
 the indentation is somewhat different.  Lines under a "config" definition
-are indented with one tab, while help text is indented an additional two
-spaces.  Example:
+are indented with one tab. Example:
 
 config AUDIT
 	bool "Auditing support"
 	depends on NET
-	help
-	  Enable auditing infrastructure that can be used with another
-	  kernel subsystem, such as SELinux (which requires this for

Documentation/CodingStyle remember: "indent" is not a fix for bad · line 526

Quoted 10 lines
Documentation/CodingStyle +5 -2
-	  logging of avc messages output).  Does not do system-call
-	  auditing without CONFIG_AUDITSYSCALL.
+	---help---
+	Enable auditing infrastructure that can be used with another
+	kernel subsystem, such as SELinux (which requires this for
+	logging of avc messages output).  Does not do system-call
+	auditing without CONFIG_AUDITSYSCALL.
 
 Features that might still be considered unstable should be defined as
 dependent on "EXPERIMENTAL":

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
#10 lore raw
In reply to Jan Engelhardt

drivers/macintosh/Kconfig menuconfig MACINTOSH_DRIVERS · line 8

Quoted 13 lines · Jan Engelhardt

Add some help texts to recently-introduced kconfig items

Index: linux-2.6.23/drivers/macintosh/Kconfig
===================================================================

drivers/macintosh/Kconfig +3 -0
@@ -3,6 +3,12 @@ menuconfig MACINTOSH_DRIVERS
 	bool "Macintosh device drivers"
 	depends on PPC || MAC || X86
 	default y if (PPC_PMAC || MAC)
+	---help---
+	  Say Y here to get to see options for devices used with Macintosh
+	  computers, both PPC and Intel based. This option alone does not add
                                  ^^^^^

drivers/macintosh/Kconfig menuconfig MACINTOSH_DRIVERS · line 11

Quoted 3 lines
drivers/macintosh/Kconfig +3 -0
+	  any kernel code.
+
+	  If you say N, all options in this submenu will be skipped and disabled.

`MAC' is the symbol for m68k Macs.

Quoted 1 line

From a quick look at drivers/macintosh/Kconfig, all of the entries are for m68k

and PPC Macs only. The only thing that depends on X86 is the main menu...

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#11 lore raw
Quoted 15 lines · Geert Uytterhoeven

drivers/macintosh/Kconfig menuconfig MACINTOSH_DRIVERS · line 8

Quoted 13 lines · Jan Engelhardt

Add some help texts to recently-introduced kconfig items

Index: linux-2.6.23/drivers/macintosh/Kconfig
===================================================================

drivers/macintosh/Kconfig +3 -0
@@ -3,6 +3,12 @@ menuconfig MACINTOSH_DRIVERS
 	bool "Macintosh device drivers"
 	depends on PPC || MAC || X86
 	default y if (PPC_PMAC || MAC)
+	---help---
+	  Say Y here to get to see options for devices used with Macintosh
+	  computers, both PPC and Intel based. This option alone does not add
                                  ^^^^^
Quoted 5 lines

drivers/macintosh/Kconfig menuconfig MACINTOSH_DRIVERS · line 11

Quoted 3 lines
drivers/macintosh/Kconfig +3 -0
+	  any kernel code.
+
+	  If you say N, all options in this submenu will be skipped and disabled.

`MAC' is the symbol for m68k Macs.

OK, then this should read

Say Y here to get to see options for devices used with Macintosh computers. This option alone does not add any kernel code.

If you say N, all options in this submenu will be skipped and disabled.

Quoted 2 lines

From a quick look at drivers/macintosh/Kconfig, all of the entries are for m68k and PPC Macs only. The only thing that depends on X86 is the main menu...

There is one entry for all sorts of Macs, MAC_EMUMOUSEBTN.

Signature · 3 lines
Stefan Richter
-=====-=-=== -=== =--==
http://arcgraph.de/sr/
#12 lore raw
Quoted 27 lines · Stefan Richter
Quoted 15 lines · Geert Uytterhoeven

drivers/macintosh/Kconfig menuconfig MACINTOSH_DRIVERS · line 8

Quoted 13 lines · Jan Engelhardt

Add some help texts to recently-introduced kconfig items

Index: linux-2.6.23/drivers/macintosh/Kconfig
===================================================================

drivers/macintosh/Kconfig +3 -0
@@ -3,6 +3,12 @@ menuconfig MACINTOSH_DRIVERS
 	bool "Macintosh device drivers"
 	depends on PPC || MAC || X86
 	default y if (PPC_PMAC || MAC)
+	---help---
+	  Say Y here to get to see options for devices used with Macintosh
+	  computers, both PPC and Intel based. This option alone does not add
                                  ^^^^^
Quoted 5 lines

drivers/macintosh/Kconfig menuconfig MACINTOSH_DRIVERS · line 11

Quoted 3 lines
drivers/macintosh/Kconfig +3 -0
+	  any kernel code.
+
+	  If you say N, all options in this submenu will be skipped and disabled.

`MAC' is the symbol for m68k Macs.

OK, then this should read

Say Y here to get to see options for devices used with Macintosh computers. This option alone does not add any kernel code.

Quoted 6 lines

If you say N, all options in this submenu will be skipped and disabled.

Quoted 2 lines

From a quick look at drivers/macintosh/Kconfig, all of the entries are for m68k and PPC Macs only. The only thing that depends on X86 is the main menu...

There is one entry for all sorts of Macs, MAC_EMUMOUSEBTN.

You're right, I missed that one, as I used `grep depends' ;-)

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds