Commit 092c354b authored by Benjamin Gaignard's avatar Benjamin Gaignard Committed by Greg Kroah-Hartman

gpu: ion: fix compilation warning

use atomic_read to get the refcount value to avoid compilation warning
Signed-off-by: default avatarBenjamin Gaignard <benjamin.gaignard@linaro.org>
[jstultz: modified patch to apply to staging directory]
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent caaf3f12
...@@ -1233,7 +1233,8 @@ static int ion_debug_heap_show(struct seq_file *s, void *unused) ...@@ -1233,7 +1233,8 @@ static int ion_debug_heap_show(struct seq_file *s, void *unused)
total_size += buffer->size; total_size += buffer->size;
if (!buffer->handle_count) { if (!buffer->handle_count) {
seq_printf(s, "%16.s %16u %16u %d %d\n", buffer->task_comm, 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; total_orphaned_size += buffer->size;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment