Эх сурвалжийг харах

IB: Use menuconfig for InfiniBand menu

Change Kconfig objects from "menu, config" into "menuconfig" so
that the user can disable the whole feature without having to
enter the menu first.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Jan Engelhardt 18 жил өмнө
parent
commit
06cc85086e

+ 7 - 8
drivers/infiniband/Kconfig

@@ -1,14 +1,14 @@
-menu "InfiniBand support"
-	depends on HAS_IOMEM
-
-config INFINIBAND
-	depends on PCI || BROKEN
+menuconfig INFINIBAND
 	tristate "InfiniBand support"
 	tristate "InfiniBand support"
+	depends on PCI || BROKEN
+	depends on HAS_IOMEM
 	---help---
 	---help---
 	  Core support for InfiniBand (IB).  Make sure to also select
 	  Core support for InfiniBand (IB).  Make sure to also select
 	  any protocols you wish to use as well as drivers for your
 	  any protocols you wish to use as well as drivers for your
 	  InfiniBand hardware.
 	  InfiniBand hardware.
 
 
+if INFINIBAND
+
 config INFINIBAND_USER_MAD
 config INFINIBAND_USER_MAD
 	tristate "InfiniBand userspace MAD support"
 	tristate "InfiniBand userspace MAD support"
 	depends on INFINIBAND
 	depends on INFINIBAND
@@ -20,7 +20,6 @@ config INFINIBAND_USER_MAD
 
 
 config INFINIBAND_USER_ACCESS
 config INFINIBAND_USER_ACCESS
 	tristate "InfiniBand userspace access (verbs and CM)"
 	tristate "InfiniBand userspace access (verbs and CM)"
-	depends on INFINIBAND
 	---help---
 	---help---
 	  Userspace InfiniBand access support.  This enables the
 	  Userspace InfiniBand access support.  This enables the
 	  kernel side of userspace verbs and the userspace
 	  kernel side of userspace verbs and the userspace
@@ -37,7 +36,7 @@ config INFINIBAND_USER_MEM
 
 
 config INFINIBAND_ADDR_TRANS
 config INFINIBAND_ADDR_TRANS
 	bool
 	bool
-	depends on INFINIBAND && INET
+	depends on INET
 	default y
 	default y
 
 
 source "drivers/infiniband/hw/mthca/Kconfig"
 source "drivers/infiniband/hw/mthca/Kconfig"
@@ -54,4 +53,4 @@ source "drivers/infiniband/ulp/srp/Kconfig"
 
 
 source "drivers/infiniband/ulp/iser/Kconfig"
 source "drivers/infiniband/ulp/iser/Kconfig"
 
 
-endmenu
+endif # INFINIBAND

+ 1 - 1
drivers/infiniband/hw/amso1100/Kconfig

@@ -1,6 +1,6 @@
 config INFINIBAND_AMSO1100
 config INFINIBAND_AMSO1100
 	tristate "Ammasso 1100 HCA support"
 	tristate "Ammasso 1100 HCA support"
-	depends on PCI && INET && INFINIBAND
+	depends on PCI && INET
 	---help---
 	---help---
 	  This is a low-level driver for the Ammasso 1100 host
 	  This is a low-level driver for the Ammasso 1100 host
 	  channel adapter (HCA).
 	  channel adapter (HCA).

+ 1 - 1
drivers/infiniband/hw/cxgb3/Kconfig

@@ -1,6 +1,6 @@
 config INFINIBAND_CXGB3
 config INFINIBAND_CXGB3
 	tristate "Chelsio RDMA Driver"
 	tristate "Chelsio RDMA Driver"
-	depends on CHELSIO_T3 && INFINIBAND && INET
+	depends on CHELSIO_T3 && INET
 	select GENERIC_ALLOCATOR
 	select GENERIC_ALLOCATOR
 	---help---
 	---help---
 	  This is an iWARP/RDMA driver for the Chelsio T3 1GbE and
 	  This is an iWARP/RDMA driver for the Chelsio T3 1GbE and

+ 1 - 1
drivers/infiniband/hw/ehca/Kconfig

@@ -1,6 +1,6 @@
 config INFINIBAND_EHCA
 config INFINIBAND_EHCA
 	tristate "eHCA support"
 	tristate "eHCA support"
-	depends on IBMEBUS && INFINIBAND
+	depends on IBMEBUS
 	---help---
 	---help---
 	This driver supports the IBM pSeries eHCA InfiniBand adapter.
 	This driver supports the IBM pSeries eHCA InfiniBand adapter.
 
 

+ 1 - 1
drivers/infiniband/hw/ipath/Kconfig

@@ -1,6 +1,6 @@
 config INFINIBAND_IPATH
 config INFINIBAND_IPATH
 	tristate "QLogic InfiniPath Driver"
 	tristate "QLogic InfiniPath Driver"
-	depends on (PCI_MSI || HT_IRQ) && 64BIT && INFINIBAND && NET
+	depends on (PCI_MSI || HT_IRQ) && 64BIT && NET
 	---help---
 	---help---
 	This is a driver for QLogic InfiniPath host channel adapters,
 	This is a driver for QLogic InfiniPath host channel adapters,
 	including InfiniBand verbs support.  This driver allows these
 	including InfiniBand verbs support.  This driver allows these

+ 0 - 1
drivers/infiniband/hw/mlx4/Kconfig

@@ -1,6 +1,5 @@
 config MLX4_INFINIBAND
 config MLX4_INFINIBAND
 	tristate "Mellanox ConnectX HCA support"
 	tristate "Mellanox ConnectX HCA support"
-	depends on INFINIBAND
 	select MLX4_CORE
 	select MLX4_CORE
 	---help---
 	---help---
 	  This driver provides low-level InfiniBand support for
 	  This driver provides low-level InfiniBand support for

+ 1 - 1
drivers/infiniband/hw/mthca/Kconfig

@@ -1,6 +1,6 @@
 config INFINIBAND_MTHCA
 config INFINIBAND_MTHCA
 	tristate "Mellanox HCA support"
 	tristate "Mellanox HCA support"
-	depends on PCI && INFINIBAND
+	depends on PCI
 	---help---
 	---help---
 	  This is a low-level driver for Mellanox InfiniHost host
 	  This is a low-level driver for Mellanox InfiniHost host
 	  channel adapters (HCAs), including the MT23108 PCI-X HCA
 	  channel adapters (HCAs), including the MT23108 PCI-X HCA

+ 1 - 1
drivers/infiniband/ulp/ipoib/Kconfig

@@ -1,6 +1,6 @@
 config INFINIBAND_IPOIB
 config INFINIBAND_IPOIB
 	tristate "IP-over-InfiniBand"
 	tristate "IP-over-InfiniBand"
-	depends on INFINIBAND && NETDEVICES && INET && (IPV6 || IPV6=n)
+	depends on NETDEVICES && INET && (IPV6 || IPV6=n)
 	---help---
 	---help---
 	  Support for the IP-over-InfiniBand protocol (IPoIB). This
 	  Support for the IP-over-InfiniBand protocol (IPoIB). This
 	  transports IP packets over InfiniBand so you can use your IB
 	  transports IP packets over InfiniBand so you can use your IB

+ 1 - 1
drivers/infiniband/ulp/iser/Kconfig

@@ -1,6 +1,6 @@
 config INFINIBAND_ISER
 config INFINIBAND_ISER
 	tristate "iSCSI Extensions for RDMA (iSER)"
 	tristate "iSCSI Extensions for RDMA (iSER)"
-	depends on INFINIBAND && SCSI && INET
+	depends on SCSI && INET
 	select SCSI_ISCSI_ATTRS
 	select SCSI_ISCSI_ATTRS
 	---help---
 	---help---
 	  Support for the iSCSI Extensions for RDMA (iSER) Protocol
 	  Support for the iSCSI Extensions for RDMA (iSER) Protocol

+ 1 - 1
drivers/infiniband/ulp/srp/Kconfig

@@ -1,6 +1,6 @@
 config INFINIBAND_SRP
 config INFINIBAND_SRP
 	tristate "InfiniBand SCSI RDMA Protocol"
 	tristate "InfiniBand SCSI RDMA Protocol"
-	depends on INFINIBAND && SCSI
+	depends on SCSI
 	---help---
 	---help---
 	  Support for the SCSI RDMA Protocol over InfiniBand.  This
 	  Support for the SCSI RDMA Protocol over InfiniBand.  This
 	  allows you to access storage devices that speak SRP over
 	  allows you to access storage devices that speak SRP over