mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
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>
This commit is contained in:
committed by
Arve Hjønnevåg
parent
18406bfbb4
commit
672c7d475c
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user