From b4569e784e0d62d542454562d9d27295a037a854 Mon Sep 17 00:00:00 2001 From: Artem Borisov Date: Thu, 23 Aug 2018 00:24:46 +0000 Subject: [PATCH] ion: cma: Update print_debug function Change-Id: Ia659c05926c39e23307339e0976d9e72f808473a --- drivers/gpu/ion/ion_cma_heap.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/ion/ion_cma_heap.c b/drivers/gpu/ion/ion_cma_heap.c index 12cd9a3a2499..0cce5b7b4729 100644 --- a/drivers/gpu/ion/ion_cma_heap.c +++ b/drivers/gpu/ion/ion_cma_heap.c @@ -322,22 +322,19 @@ int ion_cma_cache_ops(struct ion_heap *heap, } static int ion_cma_print_debug(struct ion_heap *heap, struct seq_file *s, - const struct rb_root *mem_map) + const struct list_head *mem_map) { if (mem_map) { - struct rb_node *n; + struct mem_map_data *data; seq_printf(s, "\nMemory Map\n"); seq_printf(s, "%16.s %14.s %14.s %14.s\n", "client", "start address", "end address", "size (hex)"); - for (n = rb_first(mem_map); n; n = rb_next(n)) { - struct mem_map_data *data = - rb_entry(n, struct mem_map_data, node); + list_for_each_entry(data, mem_map, node) { const char *client_name = "(null)"; - if (data->client_name) client_name = data->client_name;