From: Sascha El-Sharkawy Date: Wed, 20 Sep 2017 06:44:20 +0000 (+0200) Subject: PCI: Add Kconfig PCI_IOV dependency for PCI_REALLOC_ENABLE_AUTO X-Git-Tag: v4.15-rc1~95^2~15^2~8 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=ad581f869e809e727e7d57a07c81f349221a4276;p=linux.git PCI: Add Kconfig PCI_IOV dependency for PCI_REALLOC_ENABLE_AUTO Ensure only valid Kconfig configurations for PCI_REALLOC_ENABLE_AUTO. This is done by selecting PCI_IOV, which is required by PCI_REALLOC_ENABLE_AUTO to work. Signed-off-by: Sascha El-Sharkawy Signed-off-by: Bjorn Helgaas --- diff --git a/drivers/pci/Kconfig b/drivers/pci/Kconfig index c32a77fc8b03..f9661b03399b 100644 --- a/drivers/pci/Kconfig +++ b/drivers/pci/Kconfig @@ -42,13 +42,13 @@ config PCI_DEBUG config PCI_REALLOC_ENABLE_AUTO bool "Enable PCI resource re-allocation detection" depends on PCI + depends on PCI_IOV help Say Y here if you want the PCI core to detect if PCI resource re-allocation needs to be enabled. You can always use pci=realloc=on - or pci=realloc=off to override it. Note this feature is a no-op - unless PCI_IOV support is also enabled; in that case it will - automatically re-allocate PCI resources if SR-IOV BARs have not - been allocated by the BIOS. + or pci=realloc=off to override it. It will automatically + re-allocate PCI resources if SR-IOV BARs have not been allocated by + the BIOS. When in doubt, say N.