powerpc/powernv: Move pnv_ioda_setup_bus_dma under CONFIG_IOMMU_API
authorOliver O'Halloran <oohall@gmail.com>
Sun, 5 Jul 2020 13:35:57 +0000 (23:35 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 15 Jul 2020 01:08:20 +0000 (11:08 +1000)
commite3417faec526cbf97773dca691dcd743f5bfeb64
treecab41be289c0c4644a5d35b8cfaeb6dbfb4a385e
parent93eacd94e09db2b1bb0343f8115385e5c34abf0a
powerpc/powernv: Move pnv_ioda_setup_bus_dma under CONFIG_IOMMU_API

pnv_ioda_setup_bus_dma() is only used when a passed through PE is
returned to the host. If the kernel is built without IOMMU support
this is dead code. Move it under the #ifdef with the rest of the
IOMMU API support.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200705133557.443607-2-oohall@gmail.com
arch/powerpc/platforms/powernv/pci-ioda.c