Commit 7363cb7d authored by Ezequiel Garcia's avatar Ezequiel Garcia Committed by Ralf Baechle
Browse files

MIPS: Fix up obsolete cpu_set usage

cpu_set was removed (along with a bunch of cpumask helpers) by
commit 2f0f267e ("cpumask: remove deprecated functions.").

Fix this by replacing cpu_set with cpumask_set_cpu. Without this
fix the following error is triggered when CONFIG_MIPS_MT_FPAFF=y.

  arch/mips/kernel/smp-cps.c: In function 'cps_smp_setup':
  arch/mips/kernel/smp-cps.c:95:3: error: implicit declaration of function 'cpu_set' [-Werror=implicit-function-declaration]

Fixes: 90db024f

 ("MIPS: smp-cps: cpu_set FPU mask if FPU present")
Signed-off-by: default avatarEzequiel Garcia <>
Acked-by: default avatarNiklas Cassel <>

Signed-off-by: default avatarRalf Baechle <>
parent 4305689d
......@@ -92,7 +92,7 @@ static void __init cps_smp_setup(void)
/* If we have an FPU, enroll ourselves in the FPU-full mask */
if (cpu_has_fpu)
cpu_set(0, mt_fpu_cpumask);
cpumask_set_cpu(0, &mt_fpu_cpumask);
Supports Markdown
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