From 174296e7341517d8af69c5f42bc960ebccb396ea Mon Sep 17 00:00:00 2001 From: CMY Date: Wed, 30 Apr 2014 09:46:29 +0800 Subject: [PATCH] rk: ion: fixed build bug --- drivers/staging/android/ion/ion.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index 162156644146..d1f04ce8d04c 100755 --- a/drivers/staging/android/ion/ion.c +++ b/drivers/staging/android/ion/ion.c @@ -116,8 +116,13 @@ struct ion_handle { int id; }; +#ifdef CONFIG_ROCKCHIP_IOMMU +static void ion_iommu_force_unmap(struct ion_buffer *buffer); +#endif +#ifdef CONFIG_ION_ROCKCHIP_SNAPSHOT extern char *rockchip_ion_snapshot_get(unsigned *size); extern int rockchip_ion_snapshot_debugfs(struct dentry* root); +#endif bool ion_buffer_fault_user_mappings(struct ion_buffer *buffer) { @@ -280,7 +285,6 @@ void ion_buffer_destroy(struct ion_buffer *buffer) buffer->heap->ops->unmap_kernel(buffer->heap, buffer); buffer->heap->ops->unmap_dma(buffer->heap, buffer); #ifdef CONFIG_ROCKCHIP_IOMMU - static void ion_iommu_force_unmap(struct ion_buffer *buffer); ion_iommu_force_unmap(buffer); #endif buffer->heap->ops->free(buffer); -- 2.34.1