Commit 8b45c796 authored by Sam Ravnborg's avatar Sam Ravnborg Committed by David S. Miller

sparc32: fix sparse warnings in leon_pmc.c

Fix following warnings:
leon_pmc.c:15:14: warning: symbol 'pmc_leon_fixup_ids' was not declared. Should it be static?
leon_pmc.c:22:5: warning: symbol 'pmc_leon_need_fixup' was not declared. Should it be static?
leon_pmc.c:41:6: warning: symbol 'pmc_leon_idle_fixup' was not declared. Should it be static?
leon_pmc.c:65:6: warning: symbol 'pmc_leon_idle' was not declared. Should it be static?

Add static to definitions.
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Cc: Daniel Hellstrom <daniel@gaisler.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4007b65a
...@@ -12,14 +12,14 @@ ...@@ -12,14 +12,14 @@
#include <asm/processor.h> #include <asm/processor.h>
/* List of Systems that need fixup instructions around power-down instruction */ /* List of Systems that need fixup instructions around power-down instruction */
unsigned int pmc_leon_fixup_ids[] = { static unsigned int pmc_leon_fixup_ids[] = {
AEROFLEX_UT699, AEROFLEX_UT699,
GAISLER_GR712RC, GAISLER_GR712RC,
LEON4_NEXTREME1, LEON4_NEXTREME1,
0 0
}; };
int pmc_leon_need_fixup(void) static int pmc_leon_need_fixup(void)
{ {
unsigned int systemid = amba_system_id >> 16; unsigned int systemid = amba_system_id >> 16;
unsigned int *id; unsigned int *id;
...@@ -38,7 +38,7 @@ int pmc_leon_need_fixup(void) ...@@ -38,7 +38,7 @@ int pmc_leon_need_fixup(void)
* CPU idle callback function for systems that need some extra handling * CPU idle callback function for systems that need some extra handling
* See .../arch/sparc/kernel/process.c * See .../arch/sparc/kernel/process.c
*/ */
void pmc_leon_idle_fixup(void) static void pmc_leon_idle_fixup(void)
{ {
/* Prepare an address to a non-cachable region. APB is always /* Prepare an address to a non-cachable region. APB is always
* none-cachable. One instruction is executed after the Sleep * none-cachable. One instruction is executed after the Sleep
...@@ -62,7 +62,7 @@ void pmc_leon_idle_fixup(void) ...@@ -62,7 +62,7 @@ void pmc_leon_idle_fixup(void)
* CPU idle callback function * CPU idle callback function
* See .../arch/sparc/kernel/process.c * See .../arch/sparc/kernel/process.c
*/ */
void pmc_leon_idle(void) static void pmc_leon_idle(void)
{ {
/* Interrupts need to be enabled to not hang the CPU */ /* Interrupts need to be enabled to not hang the CPU */
local_irq_enable(); local_irq_enable();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment