diff options
author | James Hogan <james.hogan@imgtec.com> | 2014-07-04 06:59:46 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-08-01 12:32:02 -0400 |
commit | 7d907fa1c6ccb64c7f64cc7d3dcc7f6fe30a67b4 (patch) | |
tree | b97fae30174400248d25572c8441537dee1100d9 /arch/mips/kernel | |
parent | 077d0e65618f27b2199d622e12ada6d8f3dbd862 (diff) |
MIPS: smp-mt: Fix link error when PROC_FS=n
Commit d6d3c9afaab4 (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: James Hogan <james.hogan@imgtec.com>
Reported-by: Markos Chandras <markos.chandras@imgtec.com>
Reviewed-by: Markos 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: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r-- | arch/mips/kernel/smp-mt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/kernel/smp-mt.c b/arch/mips/kernel/smp-mt.c index 3babf6e4f894..21f23add04f4 100644 --- a/arch/mips/kernel/smp-mt.c +++ b/arch/mips/kernel/smp-mt.c | |||
@@ -288,6 +288,7 @@ struct plat_smp_ops vsmp_smp_ops = { | |||
288 | .prepare_cpus = vsmp_prepare_cpus, | 288 | .prepare_cpus = vsmp_prepare_cpus, |
289 | }; | 289 | }; |
290 | 290 | ||
291 | #ifdef CONFIG_PROC_FS | ||
291 | static int proc_cpuinfo_chain_call(struct notifier_block *nfb, | 292 | static int proc_cpuinfo_chain_call(struct notifier_block *nfb, |
292 | unsigned long action_unused, void *data) | 293 | unsigned long action_unused, void *data) |
293 | { | 294 | { |
@@ -309,3 +310,4 @@ static int __init proc_cpuinfo_notifier_init(void) | |||
309 | } | 310 | } |
310 | 311 | ||
311 | subsys_initcall(proc_cpuinfo_notifier_init); | 312 | subsys_initcall(proc_cpuinfo_notifier_init); |
313 | #endif | ||