Skip to content

Commit

Permalink
powerpc/eeh: Add missing #ifdef CONFIG_IOMMU_API
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Benjamin Herrenschmidt committed Aug 5, 2014
1 parent 9be9be2 commit 2194dc2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/powerpc/kernel/eeh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2194dc2

Please sign in to comment.