From: Benjamin Gaignard Date: Fri, 13 Dec 2013 22:24:22 +0000 (-0800) Subject: gpu: ion: fix compilation warning X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=092c354b8a2e590b028957e68ad38c69b21cadd8;p=openwrt%2Fstaging%2Fblogic.git gpu: ion: fix compilation warning 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index ef8f132bc2dd..e0eb2de73695 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; } }