Skip to content

Commit

Permalink
sparc32: fix sparse warnings in smp_32.c
Browse files Browse the repository at this point in the history
Fix following warnings:
smp_32.c:300:6: warning: symbol 'arch_cpu_pre_starting' was not declared. Should it be static?
smp_32.c:320:6: warning: symbol 'arch_cpu_pre_online' was not declared. Should it be static?
smp_32.c:347:6: warning: symbol 'sparc_start_secondary' was not declared. Should it be static?

Add missing static definition.

This left one warning:
   warning: symbol 'setup_profiling_timer' was not declared.

This is a global symbol that has no declaration in any global header.

Signed-off-by: Sam Ravnborg <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
sravnborg authored and davem330 committed Apr 29, 2014
1 parent a3ee8fa commit c0b0ba8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/sparc/kernel/smp_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ int __cpu_up(unsigned int cpu, struct task_struct *tidle)
return ret;
}

void arch_cpu_pre_starting(void *arg)
static void arch_cpu_pre_starting(void *arg)
{
local_ops->cache_all();
local_ops->tlb_all();
Expand All @@ -317,7 +317,7 @@ void arch_cpu_pre_starting(void *arg)
}
}

void arch_cpu_pre_online(void *arg)
static void arch_cpu_pre_online(void *arg)
{
unsigned int cpuid = hard_smp_processor_id();

Expand All @@ -344,7 +344,7 @@ void arch_cpu_pre_online(void *arg)
}
}

void sparc_start_secondary(void *arg)
static void sparc_start_secondary(void *arg)
{
unsigned int cpu;

Expand Down

0 comments on commit c0b0ba8

Please sign in to comment.