gpu: ion: ion_system_heap: Fix bug preventing compilation
authorRebecca Schultz Zavin <rebecca@android.com>
Wed, 26 Sep 2012 17:58:30 +0000 (10:58 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 21:16:08 +0000 (14:16 -0700)
Change-Id: I91d77492b99d09c7abdfaa09df280a20ee83f428
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
drivers/gpu/ion/ion_system_heap.c

index 00c91fe09d31a5147129bf3986bd4c92eb24ed9e..7b441926a761e709afbffb0ab5d153c137bb9d26 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;