gpu: ion: ion_system_heap: Fix bug preventing compilation
authorRebecca Schultz Zavin <rebecca@android.com>
Fri, 13 Dec 2013 22:24:08 +0000 (14:24 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2013 16:55:39 +0000 (08:55 -0800)
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
[jstultz: modified patch to apply to staging directory]
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_system_heap.c

index 30a225a92c403b6ab521c4850946cf2c6b8c454b..25b02556076ad9b5a70015250e80de43ec8f9141 100644 (file)
@@ -31,11 +31,12 @@ struct page_info {
        struct list_head list;
 };
 
+static unsigned int orders[] = {8, 4, 0};
+
 static struct page_info *alloc_largest_available(unsigned long size,
                                                 bool split_pages,
                                                 unsigned int max_order)
 {
-       static unsigned int orders[] = {8, 4, 0};
        struct page *page;
        struct page_info *info;
        int i;