From patchwork Fri Dec 13 22:24:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 22413 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f197.google.com (mail-ob0-f197.google.com [209.85.214.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 81FB923FBA for ; Fri, 13 Dec 2013 22:27:25 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id vb8sf8730057obc.0 for ; Fri, 13 Dec 2013 14:27:25 -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=Kw38PhXqKKBRWh5ek9P9zQ3rYkH+VF8PqY3VCggezSI=; b=I/oMD4K7aeiKQFzi0Q1d8fDGcrozAMKrLI33SyaJQzk+qJU0jOSGXKQ93XVckh2wnK oCHGO6/0ZfJkGTsA22TEZ8W3/SdSwQ5NFLgzgKhvOpS6uoD9JtbB6KBicjiuP98oVOUD 0KDOI79iAf3LH4my5rFoM5DQ8IaVlW4XSNfq4B/675cwVru2g24cHciP8UfyHjwedxA/ 2dmacsbnRVHwt2Q+Ij2xkwv5srfTrVCcUfnclyI98cQcvdMMmhL9Y66C1jAfysx3lvf4 t+GR2NAeMPdQv8x5nygU4NqS6gaVTqBEXm+E5G66Gv9ipmxGk/vwN3HiGHAzH3mko0Ot UnWQ== X-Gm-Message-State: ALoCoQljG7FlSoTtChWe9nfCzDz4JXUpQD8G7/uqA5QZoAPAsO4+vyUGgvXWCClf1DZYtX8wDY87 X-Received: by 10.182.95.68 with SMTP id di4mr1962621obb.4.1386973645156; Fri, 13 Dec 2013 14:27:25 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.120.164 with SMTP id ld4ls1227342qeb.51.gmail; Fri, 13 Dec 2013 14:27:25 -0800 (PST) X-Received: by 10.52.164.16 with SMTP id ym16mr1866915vdb.39.1386973645022; Fri, 13 Dec 2013 14:27:25 -0800 (PST) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id gw1si1189391vcb.137.2013.12.13.14.27.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 14:27:25 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id ld13so1718527vcb.6 for ; Fri, 13 Dec 2013 14:27:24 -0800 (PST) X-Received: by 10.52.160.130 with SMTP id xk2mr1879849vdb.24.1386973644941; Fri, 13 Dec 2013 14:27:24 -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 u4csp73540vcz; Fri, 13 Dec 2013 14:27:24 -0800 (PST) X-Received: by 10.66.240.4 with SMTP id vw4mr6143008pac.26.1386973644203; Fri, 13 Dec 2013 14:27:24 -0800 (PST) Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) by mx.google.com with ESMTPS id n8si2504324pax.160.2013.12.13.14.27.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 14:27:24 -0800 (PST) Received-SPF: neutral (google.com: 209.85.192.171 is neither permitted nor denied by best guess record for domain of john.stultz@linaro.org) client-ip=209.85.192.171; Received: by mail-pd0-f171.google.com with SMTP id z10so3032700pdj.30 for ; Fri, 13 Dec 2013 14:27:23 -0800 (PST) X-Received: by 10.68.217.226 with SMTP id pb2mr5926174pbc.165.1386973643801; Fri, 13 Dec 2013 14:27:23 -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.27.22 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 14:27:23 -0800 (PST) From: John Stultz To: LKML Cc: Greg KH , Android Kernel Team , Sumit Semwal , Jesse Barker , Colin Cross , Benjamin Gaignard , John Stultz Subject: [PATCH 048/115] gpu: ion: fix compilation warning Date: Fri, 13 Dec 2013 14:24:22 -0800 Message-Id: <1386973529-4884-49-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.220.175 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: Benjamin Gaignard use atomic_read to get the refcount value to avoid compilation warning Signed-off-by: Benjamin Gaignard [jstultz: modified patch to apply to staging directory] Signed-off-by: John Stultz --- drivers/staging/android/ion/ion.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index ef8f132..e0eb2de 100644 --- a/drivers/staging/android/ion/ion.c +++ b/drivers/staging/android/ion/ion.c @@ -1233,7 +1233,8 @@ static int ion_debug_heap_show(struct seq_file *s, void *unused) total_size += buffer->size; if (!buffer->handle_count) { seq_printf(s, "%16.s %16u %16u %d %d\n", buffer->task_comm, - buffer->pid, buffer->size, buffer->kmap_cnt, buffer->ref); + buffer->pid, buffer->size, buffer->kmap_cnt, + atomic_read(&buffer->ref.refcount)); total_orphaned_size += buffer->size; } }