aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2012-05-25 17:20:15 -0400
committerDavid S. Miller <davem@davemloft.net>2012-05-28 02:52:48 -0400
commit080f88837b489ff53c9ca62bc3adefdf74eb61e8 (patch)
tree02170d7db0f208e40943c3731dd6a1c959c9d649 /arch/sparc/kernel
parent3107948848ebc52b98ffd853f72065338bbc57e2 (diff)
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: Sam Ravnborg <sam@ravnborg.org> Cc: Daniel Hellstrom <daniel@gaisler.com> Cc: Konrad Eisele <konrad@gaisler.com>
Diffstat (limited to 'arch/sparc/kernel')
-rw-r--r--arch/sparc/kernel/leon_smp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/kernel/leon_smp.c b/arch/sparc/kernel/leon_smp.c
index 218c2f022695..0f3fb6d9c8ef 100644
--- a/arch/sparc/kernel/leon_smp.c
+++ b/arch/sparc/kernel/leon_smp.c
@@ -54,7 +54,7 @@ extern ctxd_t *srmmu_ctx_table_phys;
54static int smp_processors_ready; 54static int smp_processors_ready;
55extern volatile unsigned long cpu_callin_map[NR_CPUS]; 55extern volatile unsigned long cpu_callin_map[NR_CPUS];
56extern cpumask_t smp_commenced_mask; 56extern cpumask_t smp_commenced_mask;
57void __init leon_configure_cache_smp(void); 57void __cpuinit leon_configure_cache_smp(void);
58static void leon_ipi_init(void); 58static void leon_ipi_init(void);
59 59
60/* IRQ number of LEON IPIs */ 60/* IRQ number of LEON IPIs */
@@ -121,7 +121,7 @@ void __cpuinit leon_callin(void)
121 121
122extern struct linux_prom_registers smp_penguin_ctable; 122extern struct linux_prom_registers smp_penguin_ctable;
123 123
124void __init leon_configure_cache_smp(void) 124void __cpuinit leon_configure_cache_smp(void)
125{ 125{
126 unsigned long cfg = sparc_leon3_get_dcachecfg(); 126 unsigned long cfg = sparc_leon3_get_dcachecfg();
127 int me = smp_processor_id(); 127 int me = smp_processor_id();