diff options
author | Benjamin Gaignard <benjamin.gaignard@linaro.org> | 2012-10-09 13:39:25 +0200 |
---|---|---|
committer | Arve Hjønnevåg <arve@android.com> | 2013-04-29 14:43:15 -0700 |
commit | 920aedad4eee9e91ea2ff0ebbf4b58a0c8e3efc2 (patch) | |
tree | a565de47fc6771eb1307546b44c3b2839ed6a099 | |
parent | 4f8fd189e3284d17ae056df7743f988a7454cae2 (diff) |
gpu: ion: fix compilation warning
use atomic_read to get the refcount value to avoid compilation warning
Change-Id: I9bf0a07c787af8f87ac19314f996a78142f72f6b
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
-rw-r--r-- | drivers/gpu/ion/ion.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/ion/ion.c b/drivers/gpu/ion/ion.c index e675529b848..c30b8fb41a7 100644 --- a/drivers/gpu/ion/ion.c +++ b/drivers/gpu/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; } } |