]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: android: ion: statify __ion_add_cma_heaps
authorKamal Heib <kamalheib1@gmail.com>
Fri, 30 Jun 2017 18:34:43 +0000 (21:34 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jul 2017 06:41:01 +0000 (08:41 +0200)
Fix the following sparse warning:
symbol '__ion_add_cma_heaps' was not declared. Should it be static?

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_cma_heap.c

index a0949bc0dcf4f71628a8be7630de1a2344c8363d..c6db9b7260027b71b136ccf4b4526d26a0d85b99 100644 (file)
@@ -106,7 +106,7 @@ static struct ion_heap *__ion_cma_heap_create(struct cma *cma)
        return &cma_heap->heap;
 }
 
-int __ion_add_cma_heaps(struct cma *cma, void *data)
+static int __ion_add_cma_heaps(struct cma *cma, void *data)
 {
        struct ion_heap *heap;