Skip to contentSkip to conversation

Silence radeon_pm warning

PATCH In review Stephen Rothwell 3 participants 4 messages Oct 29, 2007 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Silence radeon_pm warning

drivers/video/aty/radeon_pm.c:30: warning: 'radeon_reinitialize_M10' declared 'static' but never defined

---
 drivers/video/aty/radeon_pm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
drivers/video/aty/radeon_pm.c +2 -0
index be1d57b..f989836 100644
@@ -27,7 +27,9 @@
 
 #include "ati_ids.h"
 
+#ifdef CONFIG_PM
 static void radeon_reinitialize_M10(struct radeonfb_info *rinfo);
+#endif
 
 /*
  * Workarounds for bugs in PC laptops:
Signature · 1 line
1.5.3.4
#2 lore raw
In reply to Stephen Rothwell
Quoted 3 lines · Stephen Rothwell

drivers/video/aty/radeon_pm.c:30: warning: 'radeon_reinitialize_M10' declared 'static' but never defined

I posted this one a few days ago, without adding a new ifdef (just moving the declaration down into the already existing ifdef below it):

http://marc.info/?l=linux-kernel&m=119311699109698&w=2

-Olof

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/