From patchwork Fri Dec 13 22:24:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 22399 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B40C823FBA for ; Fri, 13 Dec 2013 22:27:00 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id hu19sf4395730vcb.11 for ; Fri, 13 Dec 2013 14:27:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=SufAsI8//liN1YgxUpG+Ezm2g8KwBUFLuJm4lVLyExM=; b=kEYwS4cpOFt3wTX82Lm26aQw5Q1Jhtmyn1RNjAEoIp/hgRuJwMvFXp9cCsiaYurCVF Y9i3iWZ0NqX0RIRKBDESYlrYTRx0+UZ3WpX9k1xydPSAEWpv42jixZSGpvKyrr0IMnVd Om8IshdoLBqZclXtG0gc3EdFfoCnlfxk/o+nc0ugfkzDidDyh2TfgwazY+I3mUZTT5Y8 /+ms0JCyKsfA04ebAX2pwxgajjcp5yevtiu56Rf/hOk6urP1hf8W9WAGi6x0gRSWaVvq rjnwzeSrJXFZ5KZcWPMKQTg+hQFf7URAa5LpaaWXNjeVi+QMvXash1zOMRejG5zVoMCL Gcmg== X-Gm-Message-State: ALoCoQnSooPsDTRJDfeAoQjrqJ7OheqKOGNE3A3sg8XNj8Sji2c3o/MngtTdJ1HxYUHv/LAlI9cu X-Received: by 10.236.92.107 with SMTP id i71mr1553911yhf.1.1386973620562; Fri, 13 Dec 2013 14:27:00 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.61.229 with SMTP id t5ls1197946qer.53.gmail; Fri, 13 Dec 2013 14:27:00 -0800 (PST) X-Received: by 10.52.253.235 with SMTP id ad11mr1302654vdd.75.1386973620352; Fri, 13 Dec 2013 14:27:00 -0800 (PST) Received: from mail-vb0-f49.google.com (mail-vb0-f49.google.com [209.85.212.49]) by mx.google.com with ESMTPS id o6si1205366vcz.4.2013.12.13.14.27.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 14:27:00 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.49 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.49; Received: by mail-vb0-f49.google.com with SMTP id x11so1700482vbb.22 for ; Fri, 13 Dec 2013 14:27:00 -0800 (PST) X-Received: by 10.52.121.113 with SMTP id lj17mr57502vdb.85.1386973620295; Fri, 13 Dec 2013 14:27:00 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp73509vcz; Fri, 13 Dec 2013 14:27:00 -0800 (PST) X-Received: by 10.68.99.99 with SMTP id ep3mr6009347pbb.107.1386973619628; Fri, 13 Dec 2013 14:26:59 -0800 (PST) Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by mx.google.com with ESMTPS id qx4si2507205pbc.135.2013.12.13.14.26.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 14:26:59 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.50 is neither permitted nor denied by best guess record for domain of john.stultz@linaro.org) client-ip=209.85.220.50; Received: by mail-pa0-f50.google.com with SMTP id kl14so599516pab.9 for ; Fri, 13 Dec 2013 14:26:59 -0800 (PST) X-Received: by 10.68.241.5 with SMTP id we5mr6123493pbc.34.1386973619200; Fri, 13 Dec 2013 14:26:59 -0800 (PST) Received: from localhost.localdomain (c-67-170-153-23.hsd1.or.comcast.net. [67.170.153.23]) by mx.google.com with ESMTPSA id qz9sm7457908pbc.3.2013.12.13.14.26.57 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 14:26:58 -0800 (PST) From: John Stultz To: LKML Cc: Greg KH , Android Kernel Team , Sumit Semwal , Jesse Barker , Colin Cross , Rebecca Schultz Zavin , John Stultz Subject: [PATCH 034/115] gpu: ion: ion_system_heap: Fix bug preventing compilation Date: Fri, 13 Dec 2013 14:24:08 -0800 Message-Id: <1386973529-4884-35-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1386973529-4884-1-git-send-email-john.stultz@linaro.org> References: <1386973529-4884-1-git-send-email-john.stultz@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: john.stultz@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.49 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Rebecca Schultz Zavin Signed-off-by: Rebecca Schultz Zavin [jstultz: modified patch to apply to staging directory] Signed-off-by: John Stultz --- drivers/staging/android/ion/ion_system_heap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/android/ion/ion_system_heap.c b/drivers/staging/android/ion/ion_system_heap.c index 30a225a..25b0255 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;