ion_phys_addr_t base;
 };
 
-ion_phys_addr_t ion_carveout_allocate(struct ion_heap *heap,
-                                     unsigned long size,
-                                     unsigned long align)
+static ion_phys_addr_t ion_carveout_allocate(struct ion_heap *heap,
+                                            unsigned long size,
+                                            unsigned long align)
 {
        struct ion_carveout_heap *carveout_heap =
                container_of(heap, struct ion_carveout_heap, heap);
        return offset;
 }
 
-void ion_carveout_free(struct ion_heap *heap, ion_phys_addr_t addr,
-                      unsigned long size)
+static void ion_carveout_free(struct ion_heap *heap, ion_phys_addr_t addr,
+                             unsigned long size)
 {
        struct ion_carveout_heap *carveout_heap =
                container_of(heap, struct ion_carveout_heap, heap);
 
 #include "ion_priv.h"
 #include "ion_of.h"
 
-int ion_parse_dt_heap_common(struct device_node *heap_node,
-                       struct ion_platform_heap *heap,
-                       struct ion_of_heap *compatible)
+static int ion_parse_dt_heap_common(struct device_node *heap_node,
+                                   struct ion_platform_heap *heap,
+                                   struct ion_of_heap *compatible)
 {
        int i;
 
        return 0;
 }
 
-int ion_setup_heap_common(struct platform_device *parent,
-                       struct device_node *heap_node,
-                       struct ion_platform_heap *heap)
+static int ion_setup_heap_common(struct platform_device *parent,
+                                struct device_node *heap_node,
+                                struct ion_platform_heap *heap)
 {
        int ret = 0;