ion: fix sparse warnings
[firefly-linux-kernel-4.4.55.git] / drivers / staging / android / ion / ion_carveout_heap.c
index b0b08c30f6f0a3554bc685b7864d3fd6d71b8783..9bf20a371f1a23f14ba4d2984a9f8ece80e29788 100644 (file)
@@ -85,8 +85,8 @@ static void ion_carveout_heap_free(struct ion_buffer *buffer)
        buffer->priv_phys = ION_CARVEOUT_ALLOCATE_FAIL;
 }
 
-struct sg_table *ion_carveout_heap_map_dma(struct ion_heap *heap,
-                                             struct ion_buffer *buffer)
+static struct sg_table *ion_carveout_heap_map_dma(struct ion_heap *heap,
+                                                 struct ion_buffer *buffer)
 {
        struct sg_table *table;
        int ret;
@@ -104,8 +104,8 @@ struct sg_table *ion_carveout_heap_map_dma(struct ion_heap *heap,
        return table;
 }
 
-void ion_carveout_heap_unmap_dma(struct ion_heap *heap,
-                                struct ion_buffer *buffer)
+static void ion_carveout_heap_unmap_dma(struct ion_heap *heap,
+                                       struct ion_buffer *buffer)
 {
        sg_free_table(buffer->sg_table);
 }