Skip to content

Commit

Permalink
ARM: 7482/1: topology: fix section mismatch warning for init_cpu_topo…
Browse files Browse the repository at this point in the history
…logy

Get rid of this warning..
arch/arm/kernel/built-in.o(.text+0xac78): Section mismatch in reference
from the function init_cpu_topology() to the function
 .init.text:parse_dt_topology()
The function init_cpu_topology() references
the function __init parse_dt_topology().
This is often because init_cpu_topology lacks a __init
annotation or the annotation of parse_dt_topology is wrong.

Signed-off-by: Venkatraman S <[email protected]>
Signed-off-by: Russell King <[email protected]>
  • Loading branch information
Venkatraman Sathiyamoorthy authored and Russell King committed Aug 11, 2012
1 parent f4ba394 commit f7e416e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/kernel/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ void store_cpu_topology(unsigned int cpuid)
* init_cpu_topology is called at boot when only one cpu is running
* which prevent simultaneous write access to cpu_topology array
*/
void init_cpu_topology(void)
void __init init_cpu_topology(void)
{
unsigned int cpu;

Expand Down

0 comments on commit f7e416e

Please sign in to comment.