OSDN Git Service

[PATCH] drm: gcc complains that print_heap() in radeon_mem.c is not used.
authorWilly TARREAU <willy@pcw.(none)>
Sun, 7 May 2006 21:42:20 +0000 (23:42 +0200)
committerWilly TARREAU <willy@pcw.(none)>
Sun, 7 May 2006 21:42:20 +0000 (23:42 +0200)
print_heap() is declared static but not used anywhere. It could be removed,
but might be useful to someone for debugging purposes. Surrounding it with

Signed-off-by: Willy Tarreau <willy@w.ods.org>
- Willy

drivers/char/drm/radeon_mem.c

index a467846..3d519e3 100644 (file)
@@ -131,6 +131,7 @@ static void free_block( struct mem_block *p )
        }
 }
 
+#if 0
 static void print_heap( struct mem_block *heap )
 {
        struct mem_block *p;
@@ -140,6 +141,7 @@ static void print_heap( struct mem_block *heap )
                          p->start, p->start + p->size,
                          p->size, p->pid);
 }
+#endif
 
 /* Initialize.  How to check for an uninitialized heap?
  */