aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/tadpole.c
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2014-04-21 21:39:32 +0200
committerDavid S. Miller <davem@davemloft.net>2014-04-29 01:12:26 -0400
commit6b5f02f31b5eab6e92060a7396d2773b074e3288 (patch)
tree9653687fd9b046e1b264674ad2c931ca013b9355 /arch/sparc/kernel/tadpole.c
parentsparc32: fix sparse warning in devices.c (diff)
downloadlinux-dev-6b5f02f31b5eab6e92060a7396d2773b074e3288.tar.xz
linux-dev-6b5f02f31b5eab6e92060a7396d2773b074e3288.zip
sparc32: fix sparse warnings in tadpole.c
Fix following warnings: tadpole.c:21:6: warning: symbol 'cpu_pwr_save' was not declared. Should it be static? tadpole.c:101:13: warning: symbol 'clock_stop_probe' was not declared. Should it be static? This actually revealed that cpu_pwr_save is only assigned. It was left static with a TODO comment for now - this should be cleaned up later. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--arch/sparc/kernel/tadpole.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/sparc/kernel/tadpole.c b/arch/sparc/kernel/tadpole.c
index 9aba8bd5a78b..4bbfe4e2676d 100644
--- a/arch/sparc/kernel/tadpole.c
+++ b/arch/sparc/kernel/tadpole.c
@@ -12,13 +12,17 @@
#include <asm/oplib.h>
#include <asm/io.h>
+#include "kernel.h"
+
#define MACIO_SCSI_CSR_ADDR 0x78400000
#define MACIO_EN_DMA 0x00000200
#define CLOCK_INIT_DONE 1
static int clk_state;
static volatile unsigned char *clk_ctrl;
-void (*cpu_pwr_save)(void);
+
+/* TODO - cpu_pwr_save is only assigned - cleanup potential. */
+static void (*cpu_pwr_save)(void);
static inline unsigned int ldphys(unsigned int addr)
{