Skip to content

Commit cc72233

Browse files
olofjLinus Torvalds
authored andcommitted
radeonfb: remove warning with CONFIG_PM=n
Remove warning from powerpc ppc64_defconfig builds: drivers/video/aty/radeon_pm.c:30: warning: 'radeon_reinitialize_M10' declared 'static' but never defined It's used only under CONFIG_PM, and only with CONFIG_X86 before it is defined, so the forward declaration can be moved under the ifdef. Signed-off-by: Olof Johansson <olof@lixom.net> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: "Antonino A. Daplas" <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent f08f389 commit cc72233

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/video/aty/radeon_pm.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727

2828
#include "ati_ids.h"
2929

30-
static void radeon_reinitialize_M10(struct radeonfb_info *rinfo);
31-
3230
/*
3331
* Workarounds for bugs in PC laptops:
3432
* - enable D2 sleep in some IBM Thinkpads
@@ -39,6 +37,8 @@ static void radeon_reinitialize_M10(struct radeonfb_info *rinfo);
3937
*/
4038

4139
#if defined(CONFIG_PM) && defined(CONFIG_X86)
40+
static void radeon_reinitialize_M10(struct radeonfb_info *rinfo);
41+
4242
struct radeon_device_id {
4343
const char *ident; /* (arbitrary) Name */
4444
const unsigned short subsystem_vendor; /* Subsystem Vendor ID */

0 commit comments

Comments
 (0)