Skip to content

Commit 2e8cb2c

Browse files
robherringbjorn-helgaas
authored andcommitted
PCI: Fix PCI kconfig menu organization
After commit eb01d42 ("PCI: consolidate PCI config entry in drivers/pci"), all the PCI kconfig options appear below "PCI support" rather than within a sub-menu. This is because menuconfig expects all kconfig entries to be enclosed in an if/endif section. Add the missing if/endif. With this, "depends on PCI" is redundant in the sub-menu entries and can be removed. Fixes: eb01d42 ("PCI: consolidate PCI config entry in drivers/pci") Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
1 parent a3869d4 commit 2e8cb2c

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

drivers/pci/Kconfig

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ menuconfig PCI
2121
support for PCI-X and the foundations for PCI Express support.
2222
Say 'Y' here unless you know what you are doing.
2323

24+
if PCI
25+
2426
config PCI_DOMAINS
2527
bool
2628
depends on PCI
2729

2830
config PCI_DOMAINS_GENERIC
2931
bool
30-
depends on PCI
3132
select PCI_DOMAINS
3233

3334
config PCI_SYSCALL
@@ -37,7 +38,6 @@ source "drivers/pci/pcie/Kconfig"
3738

3839
config PCI_MSI
3940
bool "Message Signaled Interrupts (MSI and MSI-X)"
40-
depends on PCI
4141
select GENERIC_MSI_IRQ
4242
help
4343
This allows device drivers to enable MSI (Message Signaled
@@ -59,15 +59,14 @@ config PCI_MSI_IRQ_DOMAIN
5959
config PCI_QUIRKS
6060
default y
6161
bool "Enable PCI quirk workarounds" if EXPERT
62-
depends on PCI
6362
help
6463
This enables workarounds for various PCI chipset bugs/quirks.
6564
Disable this only if your target machine is unaffected by PCI
6665
quirks.
6766

6867
config PCI_DEBUG
6968
bool "PCI Debugging"
70-
depends on PCI && DEBUG_KERNEL
69+
depends on DEBUG_KERNEL
7170
help
7271
Say Y here if you want the PCI core to produce a bunch of debug
7372
messages to the system log. Select this if you are having a
@@ -77,7 +76,6 @@ config PCI_DEBUG
7776

7877
config PCI_REALLOC_ENABLE_AUTO
7978
bool "Enable PCI resource re-allocation detection"
80-
depends on PCI
8179
depends on PCI_IOV
8280
help
8381
Say Y here if you want the PCI core to detect if PCI resource
@@ -90,7 +88,6 @@ config PCI_REALLOC_ENABLE_AUTO
9088

9189
config PCI_STUB
9290
tristate "PCI Stub driver"
93-
depends on PCI
9491
help
9592
Say Y or M here if you want be able to reserve a PCI device
9693
when it is going to be assigned to a guest operating system.
@@ -99,7 +96,6 @@ config PCI_STUB
9996

10097
config PCI_PF_STUB
10198
tristate "PCI PF Stub driver"
102-
depends on PCI
10399
depends on PCI_IOV
104100
help
105101
Say Y or M here if you want to enable support for devices that
@@ -111,7 +107,7 @@ config PCI_PF_STUB
111107

112108
config XEN_PCIDEV_FRONTEND
113109
tristate "Xen PCI Frontend"
114-
depends on PCI && X86 && XEN
110+
depends on X86 && XEN
115111
select PCI_XEN
116112
select XEN_XENBUS_FRONTEND
117113
default y
@@ -133,7 +129,6 @@ config PCI_BRIDGE_EMUL
133129

134130
config PCI_IOV
135131
bool "PCI IOV support"
136-
depends on PCI
137132
select PCI_ATS
138133
help
139134
I/O Virtualization is a PCI feature supported by some devices
@@ -144,7 +139,6 @@ config PCI_IOV
144139

145140
config PCI_PRI
146141
bool "PCI PRI support"
147-
depends on PCI
148142
select PCI_ATS
149143
help
150144
PRI is the PCI Page Request Interface. It allows PCI devices that are
@@ -154,7 +148,6 @@ config PCI_PRI
154148

155149
config PCI_PASID
156150
bool "PCI PASID support"
157-
depends on PCI
158151
select PCI_ATS
159152
help
160153
Process Address Space Identifiers (PASIDs) can be used by PCI devices
@@ -167,7 +160,7 @@ config PCI_PASID
167160

168161
config PCI_P2PDMA
169162
bool "PCI peer-to-peer transfer support"
170-
depends on PCI && ZONE_DEVICE
163+
depends on ZONE_DEVICE
171164
select GENERIC_ALLOCATOR
172165
help
173166
Enableѕ drivers to do PCI peer-to-peer transactions to and from
@@ -184,12 +177,11 @@ config PCI_P2PDMA
184177

185178
config PCI_LABEL
186179
def_bool y if (DMI || ACPI)
187-
depends on PCI
188180
select NLS
189181

190182
config PCI_HYPERV
191183
tristate "Hyper-V PCI Frontend"
192-
depends on PCI && X86 && HYPERV && PCI_MSI && PCI_MSI_IRQ_DOMAIN && X86_64
184+
depends on X86 && HYPERV && PCI_MSI && PCI_MSI_IRQ_DOMAIN && X86_64
193185
help
194186
The PCI device frontend driver allows the kernel to import arbitrary
195187
PCI devices from a PCI backend to support PCI driver domains.
@@ -198,3 +190,5 @@ source "drivers/pci/hotplug/Kconfig"
198190
source "drivers/pci/controller/Kconfig"
199191
source "drivers/pci/endpoint/Kconfig"
200192
source "drivers/pci/switch/Kconfig"
193+
194+
endif

0 commit comments

Comments
 (0)