gpu: ion: fix compilation warning
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>
Fri, 13 Dec 2013 22:24:22 +0000 (14:24 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2013 16:55:40 +0000 (08:55 -0800)
use atomic_read to get the refcount value to avoid compilation warning

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
[jstultz: modified patch to apply to staging directory]
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion.c

index ef8f132bc2ddccc788200621710ba195867a1efa..e0eb2de736953de2fa2f2d406f1dfa1e314a5150 100644 (file)
@@ -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;
                }
        }
This page took 0.030175 seconds and 5 git commands to generate.