]> 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)
commit0feaa908d6ccac7f51db8b6bc49d9bf8fda3f936
treecab41be289c0c4644a5d35b8cfaeb6dbfb4a385e
parent69323d83ceba2a90ff0664e8d8b38c6249285bd5
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