[PATCH] Silence radeon_pm warning

Subsystems: framebuffer layer, the rest

STALE6895d

4 messages, 3 authors, 2007-10-29 · open the first message on its own page

[PATCH] Silence radeon_pm warning

From: Stephen Rothwell <hidden>
Date: 2007-10-29 02:59:21

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

Signed-off-by: Stephen Rothwell <redacted>
---
 drivers/video/aty/radeon_pm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
diff --git a/drivers/video/aty/radeon_pm.c b/drivers/video/aty/radeon_pm.c
index be1d57b..f989836 100644
--- a/drivers/video/aty/radeon_pm.c
+++ b/drivers/video/aty/radeon_pm.c
@@ -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:
-- 
1.5.3.4

Re: [PATCH] Silence radeon_pm warning

From: David Miller <davem@davemloft.net>
Date: 2007-10-29 03:06:20

From: Stephen Rothwell <redacted>
Date: Mon, 29 Oct 2007 13:59:11 +1100
drivers/video/aty/radeon_pm.c:30: warning: 'radeon_reinitialize_M10' declared 'static' but never defined

Signed-off-by: Stephen Rothwell <redacted>
Acked-by: David S. Miller <davem@davemloft.net>

-------------------------------------------------------------------------
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/

Re: [PATCH] Silence radeon_pm warning

From: Olof Johansson <hidden>
Date: 2007-10-29 04:54:17

On Mon, Oct 29, 2007 at 01:59:11PM +1100, Stephen Rothwell wrote:
drivers/video/aty/radeon_pm.c:30: warning: 'radeon_reinitialize_M10' declared 'static' but never defined

Signed-off-by: Stephen Rothwell <redacted>
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/

Re: [PATCH] Silence radeon_pm warning

From: Stephen Rothwell <hidden>
Date: 2007-10-29 05:34:03

On Mon, 29 Oct 2007 00:02:02 -0500 Olof Johansson [off-list ref] wrote:
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
Yeah, missed that and yours looks better.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help