Skip to content

Commit 8b45c79

Browse files
sravnborgdavem330
authored andcommitted
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: Sam Ravnborg <sam@ravnborg.org> Cc: Daniel Hellstrom <daniel@gaisler.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 4007b65 commit 8b45c79

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎arch/sparc/kernel/leon_pmc.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
#include <asm/processor.h>
1313

1414
/* List of Systems that need fixup instructions around power-down instruction */
15-
unsigned int pmc_leon_fixup_ids[] = {
15+
static unsigned int pmc_leon_fixup_ids[] = {
1616
AEROFLEX_UT699,
1717
GAISLER_GR712RC,
1818
LEON4_NEXTREME1,
1919
0
2020
};
2121

22-
int pmc_leon_need_fixup(void)
22+
static int pmc_leon_need_fixup(void)
2323
{
2424
unsigned int systemid = amba_system_id >> 16;
2525
unsigned int *id;
@@ -38,7 +38,7 @@ int pmc_leon_need_fixup(void)
3838
* CPU idle callback function for systems that need some extra handling
3939
* See .../arch/sparc/kernel/process.c
4040
*/
41-
void pmc_leon_idle_fixup(void)
41+
static void pmc_leon_idle_fixup(void)
4242
{
4343
/* Prepare an address to a non-cachable region. APB is always
4444
* none-cachable. One instruction is executed after the Sleep
@@ -62,7 +62,7 @@ void pmc_leon_idle_fixup(void)
6262
* CPU idle callback function
6363
* See .../arch/sparc/kernel/process.c
6464
*/
65-
void pmc_leon_idle(void)
65+
static void pmc_leon_idle(void)
6666
{
6767
/* Interrupts need to be enabled to not hang the CPU */
6868
local_irq_enable();

0 commit comments

Comments
 (0)