]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0d91304ca337404c6a32262cc50c9db3d97c530e
treecab41be289c0c4644a5d35b8cfaeb6dbfb4a385e
parent85b9bf95b27fef8914f5d85fd4f97c88eaed7b63
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