Commit 7d907fa1 authored by James Hogan's avatar James Hogan Committed by Ralf Baechle

MIPS: smp-mt: Fix link error when PROC_FS=n

Commit d6d3c9af (MIPS: MT: proc: Add support for printing VPE and TC
ids) causes a link error when CONFIG_PROC_FS=n:

arch/mips/built-in.o: In function `proc_cpuinfo_notifier_init':
smp-mt.c: undefined reference to `register_proc_cpuinfo_notifier'

This is fixed by adding an ifdef around the procfs handling code
in smp-mt.c.
Signed-off-by: default avatarJames Hogan <james.hogan@imgtec.com>
Reported-by: default avatarMarkos Chandras <markos.chandras@imgtec.com>
Reviewed-by: default avatarMarkos Chandras <markos.chandras@imgtec.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: <stable@vger.kernel.org> # >= 3.15
Patchwork: https://patchwork.linux-mips.org/patch/7244/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 077d0e65
...@@ -288,6 +288,7 @@ struct plat_smp_ops vsmp_smp_ops = { ...@@ -288,6 +288,7 @@ struct plat_smp_ops vsmp_smp_ops = {
.prepare_cpus = vsmp_prepare_cpus, .prepare_cpus = vsmp_prepare_cpus,
}; };
#ifdef CONFIG_PROC_FS
static int proc_cpuinfo_chain_call(struct notifier_block *nfb, static int proc_cpuinfo_chain_call(struct notifier_block *nfb,
unsigned long action_unused, void *data) unsigned long action_unused, void *data)
{ {
...@@ -309,3 +310,4 @@ static int __init proc_cpuinfo_notifier_init(void) ...@@ -309,3 +310,4 @@ static int __init proc_cpuinfo_notifier_init(void)
} }
subsys_initcall(proc_cpuinfo_notifier_init); subsys_initcall(proc_cpuinfo_notifier_init);
#endif
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