Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7545254c authored by Atul Raut's avatar Atul Raut Committed by Gerrit - the friendly Code Review server
Browse files

dma-mapping: fix build when !CONFIG_ARM_SMMU



Allow compilation when CONFIG_ARM_SMMU is not selected by making
CONFIG_IOMMU_IO_PGTABLE_FAST depends on CONFIG_ARM64_DMA_USE_IOMMU.
Removed inclusion of dma-mapping-fast.h by dma-iommu.h.

CRs-Fixed: 2000526
Change-Id: Iadfc236f848f46e6742a98581dbfdb13c7a2695e
Signed-off-by: default avatarAtul Raut <araut@codeaurora.org>
parent 981dbde5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -9,7 +9,6 @@
#include <linux/dma-debug.h>
#include <linux/kmemcheck.h>
#include <linux/kref.h>
#include <linux/dma-mapping-fast.h>

struct dma_iommu_mapping {
	/* iommu specific data */
@@ -21,8 +20,9 @@ struct dma_iommu_mapping {

	spinlock_t		lock;
	struct kref		kref;

#ifdef CONFIG_IOMMU_IO_PGTABLE_FAST
	struct dma_fast_smmu_mapping *fast;
#endif
};

#ifdef CONFIG_ARM64_DMA_USE_IOMMU
+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ config IOMMU_IO_PGTABLE_LPAE_SELFTEST

config IOMMU_IO_PGTABLE_FAST
	bool "Fast ARMv7/v8 Long Descriptor Format"
	select IOMMU_IO_PGTABLE
	depends on ARM64_DMA_USE_IOMMU
	help
          Enable support for a subset of the ARM long descriptor pagetable
	  format.  This allocator achieves fast performance by