mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
powerpc/eeh: Add missing #ifdef CONFIG_IOMMU_API
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>
This commit is contained in:
parent
9be9be2e9a
commit
2194dc27bd
1 changed files with 4 additions and 0 deletions
|
@ -1207,6 +1207,8 @@ void eeh_dev_release(struct pci_dev *pdev)
|
|||
}
|
||||
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);
|
||||
|
@ -1253,6 +1255,8 @@ struct eeh_pe *eeh_iommu_group_to_pe(struct iommu_group *group)
|
|||
return edev->pe;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_IOMMU_API */
|
||||
|
||||
/**
|
||||
* eeh_pe_set_option - Set options for the indicated PE
|
||||
* @pe: EEH PE
|
||||
|
|
Loading…
Reference in a new issue