rk: ion: fixed build bug
authorCMY <cmy@rock-chips.com>
Wed, 30 Apr 2014 01:46:29 +0000 (09:46 +0800)
committerCMY <cmy@rock-chips.com>
Wed, 30 Apr 2014 01:46:49 +0000 (09:46 +0800)
drivers/staging/android/ion/ion.c

index 162156644146f41dcd0e491336848ae001a007bf..d1f04ce8d04c238adcc820f56fa5312f2e550ec2 100755 (executable)
@@ -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);