• Michael Ellerman's avatar
    powerpc/powernv: Fix build with IOMMU_API=n · 79cb6879
    Michael Ellerman authored
    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: b4d37a7b ("powerpc/powernv: Remove unused pnv_npu_try_dma_set_bypass() function")
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    79cb6879
npu-dma.c 15.7 KB