From: Rebecca Schultz Zavin Date: Fri, 13 Dec 2013 22:24:08 +0000 (-0800) Subject: gpu: ion: ion_system_heap: Fix bug preventing compilation X-Git-Tag: Ubuntu-5.2.0-15.16~14200^2~443 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=b0599c014028eb19d0e0b2cd82390555a8eef22d;p=mirror_ubuntu-eoan-kernel.git gpu: ion: ion_system_heap: Fix bug preventing compilation Signed-off-by: Rebecca Schultz Zavin [jstultz: modified patch to apply to staging directory] Signed-off-by: John Stultz Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/android/ion/ion_system_heap.c b/drivers/staging/android/ion/ion_system_heap.c index 30a225a92c40..25b02556076a 100644 --- a/drivers/staging/android/ion/ion_system_heap.c +++ b/drivers/staging/android/ion/ion_system_heap.c @@ -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;