OSDN Git Service
(root)
/
linux-kernel-docs
/
linux-2.4.36.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
daf8794
)
[PATCH] drm: gcc complains that print_heap() in radeon_mem.c is not used.
author
Willy TARREAU
<willy@pcw.(none)>
Sun, 7 May 2006 21:42:20 +0000
(23:42 +0200)
committer
Willy 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
patch
|
blob
|
history
diff --git
a/drivers/char/drm/radeon_mem.c
b/drivers/char/drm/radeon_mem.c
index
a467846
..
3d519e3
100644
(file)
--- 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 *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?
*/