[PATCH kernel v2 4/4] powerpc/powernv/ioda: Remove obsolete iommu_table_ops::exchange callbacks
Michael Ellerman
mpe at ellerman.id.au
Tue Aug 27 14:48:41 AEST 2019
Alexey Kardashevskiy <aik at ozlabs.ru> writes:
> As now we have xchg_no_kill/tce_kill, these are not used anymore so
> remove them.
>
> Signed-off-by: Alexey Kardashevskiy <aik at ozlabs.ru>
> ---
> arch/powerpc/include/asm/iommu.h | 10 -----
> arch/powerpc/kernel/iommu.c | 26 +-----------
> arch/powerpc/platforms/powernv/pci-ioda.c | 50 -----------------------
> 3 files changed, 1 insertion(+), 85 deletions(-)
This doesn't build:
arch/powerpc/platforms/pseries/iommu.c:652:3: error: 'struct iommu_table_ops' has no member named 'exchange'
.exchange = tce_exchange_pseries,
^~~~~~~~
arch/powerpc/platforms/pseries/iommu.c:652:14: error: initialization of 'int (*)(struct iommu_table *, long int, long unsigned int *, enum dma_data_direction *, bool)' {aka 'int (*)(struct iommu_table *, long int, long unsigned int *, enum dma_data_direction *, _Bool)'} from incompatible pointer type 'int (*)(struct iommu_table *, long int, long unsigned int *, enum dma_data_direction *)' [-Werror=incompatible-pointer-types]
.exchange = tce_exchange_pseries,
^~~~~~~~~~~~~~~~~~~~
cheers
More information about the Linuxppc-dev
mailing list