powerpc/powernv: Fix build with IOMMU_API=n
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 13 Sep 2019 13:50:06 +0000 (23:50 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 13 Sep 2019 14:03:00 +0000 (00:03 +1000)
commit79cb6879135b7441f0955ca3f86be8c8d21c7199
treec4587e3ae92905e970193614cdb5180b5fef9652
parent1b7f3b6c43675ef2cfb9d8f48bde057794820f7c
powerpc/powernv: Fix build with IOMMU_API=n

The builds breaks when IOMMU_API=n, eg. skiroot_defconfig:

  arch/powerpc/platforms/powernv/npu-dma.c:96:28: error: 'get_gpu_pci_dev_and_pe' defined but not used
  arch/powerpc/platforms/powernv/npu-dma.c:126:13: error: 'pnv_npu_set_window' defined but not used

Fixes: b4d37a7b6934 ("powerpc/powernv: Remove unused pnv_npu_try_dma_set_bypass() function")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/npu-dma.c