Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64/dma: Removing ARCH_HAS_DMA_GET_REQUIRED_MASK macro

Arm64 does not define dma_get_required_mask() function.
Therefore, it should not define the ARCH_HAS_DMA_GET_REQUIRED_MASK.
This causes build errors in some device drivers (e.g. mpt2sas)

Signed-off-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: <stable@vger.kernel.org>

authored by

Suravee Suthikulpanit and committed by
Catalin Marinas
f3a183cb 2227901a

-2
-2
arch/arm64/include/asm/dma-mapping.h
··· 26 26 #include <xen/xen.h> 27 27 #include <asm/xen/hypervisor.h> 28 28 29 - #define ARCH_HAS_DMA_GET_REQUIRED_MASK 30 - 31 29 #define DMA_ERROR_CODE (~(dma_addr_t)0) 32 30 extern struct dma_map_ops *dma_ops; 33 31 extern struct dma_map_ops coherent_swiotlb_dma_ops;