powerpc/iommu: Only build sPAPR access functions on pSeries
authorTimothy Pearson <tpearson@raptorengineering.com>
Mon, 5 Jun 2023 18:48:56 +0000 (13:48 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 21 Jun 2023 05:13:57 +0000 (15:13 +1000)
commitbfd8d989210cb6bb1c8e87b7c525831dceb91418
tree7b429ce59524bfbcc2ac1002093d33f8eb1f9532
parent331e2cad6d168ac5ccb25ae34bdc305b8b731bc0
powerpc/iommu: Only build sPAPR access functions on pSeries

 and PowerNV

A build failure with CONFIG_HAVE_PCI=y set without PSERIES or POWERNV
set was caught by the random configuration checker.  Guard the sPAPR
specific IOMMU functions on CONFIG_PPC_PSERIES || CONFIG_PPC_POWERNV.

Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/2015925968.3546872.1685990936823.JavaMail.zimbra@raptorengineeringinc.com
arch/powerpc/kernel/iommu.c