PCI: Move ATS declarations outside of CONFIG_PCI
authorJean-Philippe Brucker <jean-philippe.brucker@arm.com>
Wed, 17 Apr 2019 18:24:40 +0000 (19:24 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 23 Apr 2019 11:22:41 +0000 (12:22 +0100)
commit6e1ffbb7c2ab80df54ecbb01cf3d2c64aafed74a
tree12015eae489546b75a0c72ddc3cb69c82c08c658
parent954a03be033c7cef80ddc232e7cbdb17df735663
PCI: Move ATS declarations outside of CONFIG_PCI

At the moment, the ATS functions are only defined when CONFIG_PCI is
enabled. Since we're about to use them in the Arm SMMUv3 driver, which
could be built with CONFIG_PCI disabled, and they are already guarded by
CONFIG_PCI_ATS which depends on CONFIG_PCI, move the definitions outside
of CONFIG_PCI.

Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
include/linux/pci.h