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

Commit 57c7140e authored by Sivasri Kumar Vanka's avatar Sivasri Kumar Vanka
Browse files

arm: mm: dma-mapping: fix unused function warning



Compile the static function is_dma_coherent, when config
ARM_DMA_USE_IOMMU is selected. Compiler's configured to
treat unused function as error will pass through.

Change-Id: I0ad343ce9c7a50faf8c2085af0c60d709b07559d
Signed-off-by: default avatarRakesh Kumar <rakekuma@codeaurora.org>
Signed-off-by: default avatarSivasri Kumar Vanka <sivasri@codeaurora.org>
parent 98f43325
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -143,6 +143,7 @@ static pgprot_t __get_dma_pgprot(unsigned long attrs, pgprot_t prot,
	return prot;
}

#ifdef CONFIG_ARM_DMA_USE_IOMMU
static bool is_dma_coherent(struct device *dev, unsigned long attrs,
			    bool is_coherent)
{
@@ -155,6 +156,7 @@ static bool is_dma_coherent(struct device *dev, unsigned long attrs,

	return is_coherent;
}
#endif

/**
 * arm_dma_map_page - map a portion of a page for streaming DMA