From: "Paolo 'Blaisorblade' Giarrusso" Make the whole netdevices menu depend on NET, rather than having an empty submenu when networking is disabled. Indeed, almost the whole body of the menu was surrounded by if NETDEVICES, and what was outside depended on NETCONSOLE which is inside the menu. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton --- drivers/net/Kconfig | 7 +------ 1 files changed, 1 insertion(+), 6 deletions(-) diff -puN drivers/net/Kconfig~kbuild-menu-hide-empty-netdevices-menu-when-net-is-disabled drivers/net/Kconfig --- devel/drivers/net/Kconfig~kbuild-menu-hide-empty-netdevices-menu-when-net-is-disabled 2006-01-18 18:49:23.000000000 -0800 +++ devel-akpm/drivers/net/Kconfig 2006-01-18 18:49:23.000000000 -0800 @@ -4,9 +4,9 @@ # menu "Network device support" + depends on NET config NETDEVICES - depends on NET default y if UML bool "Network device support" ---help--- @@ -24,9 +24,6 @@ config NETDEVICES If unsure, say Y. -# All the following symbols are dependent on NETDEVICES - do not repeat -# that for each of the symbols. -if NETDEVICES config IFB tristate "Intermediate Functional Block support" @@ -2696,8 +2693,6 @@ config NETCONSOLE If you want to log kernel messages over the network, enable this. See for details. -endif #NETDEVICES - config NETPOLL def_bool NETCONSOLE _