Commit 080f8883 authored by Sam Ravnborg's avatar Sam Ravnborg Committed by David S. Miller

sparc32,leon: fix section mismatch warning

Fix following warning:

WARNING: arch/sparc/kernel/built-in.o(.cpuinit.text+0x9f4): Section mismatch in reference from the function leon_callin() to the function .init.text:leon_configure_cache_smp()
The function __cpuinit leon_callin() references
a function __init leon_configure_cache_smp().
If leon_configure_cache_smp is only used by leon_callin then
annotate leon_configure_cache_smp with a matching annotation.
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Cc: Daniel Hellstrom <daniel@gaisler.com>
Cc: Konrad Eisele <konrad@gaisler.com>
parent 31079488
...@@ -54,7 +54,7 @@ extern ctxd_t *srmmu_ctx_table_phys; ...@@ -54,7 +54,7 @@ extern ctxd_t *srmmu_ctx_table_phys;
static int smp_processors_ready; static int smp_processors_ready;
extern volatile unsigned long cpu_callin_map[NR_CPUS]; extern volatile unsigned long cpu_callin_map[NR_CPUS];
extern cpumask_t smp_commenced_mask; extern cpumask_t smp_commenced_mask;
void __init leon_configure_cache_smp(void); void __cpuinit leon_configure_cache_smp(void);
static void leon_ipi_init(void); static void leon_ipi_init(void);
/* IRQ number of LEON IPIs */ /* IRQ number of LEON IPIs */
...@@ -121,7 +121,7 @@ void __cpuinit leon_callin(void) ...@@ -121,7 +121,7 @@ void __cpuinit leon_callin(void)
extern struct linux_prom_registers smp_penguin_ctable; extern struct linux_prom_registers smp_penguin_ctable;
void __init leon_configure_cache_smp(void) void __cpuinit leon_configure_cache_smp(void)
{ {
unsigned long cfg = sparc_leon3_get_dcachecfg(); unsigned long cfg = sparc_leon3_get_dcachecfg();
int me = smp_processor_id(); int me = smp_processor_id();
......
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