[PATCH] drm: gcc complains that print_heap() in radeon_mem.c is not used.
Linux Kernel Mailing List <[email protected]> Fri, 12 May 2006 18:59:48 GMT
| Newsgroups | gmane.linux.kernel.commits.2-4 |
|---|---|
| Message-ID | <[email protected]> |
commit 78344504ec280716131d118cd488e84993f84fa3 tree d0bb8c5a8da842b216a856c52f526a9d74d727b5 parent daf87944b986566439dd65393eee561b263aba68 author Willy TARREAU <willy@pcw.(none)> Sun, 07 May 2006 23:42:20 +0200 committer Willy TARREAU <willy@pcw.(none)> Sun, 07 May 2006 23:42:20 +0200 [PATCH] drm: gcc complains that print_heap() in radeon_mem.c is not used. 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 <[email protected]> - Willy drivers/char/drm/radeon_mem.c | 2 ++ 1 files changed, 2 insertions(+) diff --git a/drivers/char/drm/radeon_mem.c b/drivers/char/drm/radeon_mem.c index a467846..3d519e3 100644 --- a/drivers/char/drm/radeon_mem.c +++ b/drivers/char/drm/radeon_mem.c @@ -131,6 +131,7 @@ static void free_block( struct mem_block } } +#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 p->start, p->start + p->size, p->size, p->pid); } +#endif /* Initialize. How to check for an uninitialized heap? */