lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Mon, 15 Sep 2014 12:25:04 -0700 From: Greg Kroah-Hartman <gregkh@...uxfoundation.org> To: linux-kernel@...r.kernel.org Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>, stable@...r.kernel.org, James Hogan <james.hogan@...tec.com>, Markos Chandras <markos.chandras@...tec.com>, Ralf Baechle <ralf@...ux-mips.org>, linux-mips@...ux-mips.org Subject: [PATCH 3.16 065/158] MIPS: smp-mt: Fix link error when PROC_FS=n 3.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: James Hogan <james.hogan@...tec.com> commit 7d907fa1c6ccb64c7f64cc7d3dcc7f6fe30a67b4 upstream. 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@...tec.com> Reported-by: Markos Chandras <markos.chandras@...tec.com> Reviewed-by: Markos Chandras <markos.chandras@...tec.com> Cc: Ralf Baechle <ralf@...ux-mips.org> Cc: linux-mips@...ux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/7244/ Signed-off-by: Ralf Baechle <ralf@...ux-mips.org> Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org> --- arch/mips/kernel/smp-mt.c | 2 ++ 1 file changed, 2 insertions(+) --- 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 = { .prepare_cpus = vsmp_prepare_cpus, }; +#ifdef CONFIG_PROC_FS static int proc_cpuinfo_chain_call(struct notifier_block *nfb, unsigned long action_unused, void *data) { @@ -309,3 +310,4 @@ static int __init proc_cpuinfo_notifier_ } subsys_initcall(proc_cpuinfo_notifier_init); +#endif -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists