Some new functions are exposed for use by the IOMMU code but
won't build when CONFIG_IOMMU_API isn't set, so shield them
appropriately.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
}
EXPORT_SYMBOL(eeh_dev_release);
}
EXPORT_SYMBOL(eeh_dev_release);
+#ifdef CONFIG_IOMMU_API
+
static int dev_has_iommu_table(struct device *dev, void *data)
{
struct pci_dev *pdev = to_pci_dev(dev);
static int dev_has_iommu_table(struct device *dev, void *data)
{
struct pci_dev *pdev = to_pci_dev(dev);
+#endif /* CONFIG_IOMMU_API */
+
/**
* eeh_pe_set_option - Set options for the indicated PE
* @pe: EEH PE
/**
* eeh_pe_set_option - Set options for the indicated PE
* @pe: EEH PE