Skip to contentSkip to conversation

radeon: fix unused-function warning

PATCH RESEND New Andreas Boll 1 participant 1 message Oct 12, 2012

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 radeon: fix unused-function warning

radeon_cs_gem.c:333:13: warning: 'cs_gem_dump_bof' defined but not used [-Wunused-function]

---
 radeon/radeon_cs_gem.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
radeon/radeon_cs_gem.c +2 -0
index 9834bcf..b963140 100644
@@ -330,6 +330,7 @@ static int cs_gem_end(struct radeon_cs_int *cs,
     return 0;
 }
 
+#if CS_BOF_DUMP
 static void cs_gem_dump_bof(struct radeon_cs_int *cs)
 {
     struct cs_gem *csg = (struct cs_gem*)cs;
@@ -415,6 +416,7 @@ out_err:
     bof_decref(device_id);
     bof_decref(root);
 }
+#endif
 
 static int cs_gem_emit(struct radeon_cs_int *cs)
 {
Signature · 1 line
1.7.4.1