Use __cpuinit for mips_probe_watch_registers. This function is called whenever a cpu is added, it cannot be __init. Signed-off-by: David Daney <ddaney@xxxxxxxxxxxxxxxxxx> --- arch/mips/kernel/watch.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/mips/kernel/watch.c b/arch/mips/kernel/watch.c index e9c4f5d..c154069 100644 --- a/arch/mips/kernel/watch.c +++ b/arch/mips/kernel/watch.c @@ -100,7 +100,7 @@ void mips_clear_watch_registers(void) } } -__init void mips_probe_watch_registers(struct cpuinfo_mips *c) +__cpuinit void mips_probe_watch_registers(struct cpuinfo_mips *c) { unsigned int t;