Re: Linux 2.6.24-rc2 build fails: implicit declaration of function âsmp_call_function_mask'

From: Miguel Botón
Date: Wed Nov 07 2007 - 10:07:00 EST


On Wednesday 07 November 2007 10:55:55 Matthias Kaehlcke wrote:
>
> v2.6.24-rc2 fails to build on my box with the following error:
>
> CC [M] drivers/kvm/kvm_main.o
> drivers/kvm/kvm_main.c: In function ???kvm_flush_remote_tlbs???:
> drivers/kvm/kvm_main.c:220: error: implicit declaration of function
> ???smp_call_function_mask???
> make[3]: *** [drivers/kvm/kvm_main.o] Error 1
> make[2]: *** [drivers/kvm] Error 2
> make[1]: *** [drivers] Error 2
> make[1]: Leaving directory `/data/kernel/linux-2.6.24-rc2'
> make: *** [debian/stamp-build-kernel] Error 2
>
> the .config file is attached

This patch should fix this error.

Signed-off-by: Miguel Boton <mboton@xxxxxxxxx>

Index: linux-2.6.24-rc2/drivers/kvm/kvm_main.c
===================================================================
--- linux-2.6.24-rc2.orig/drivers/kvm/kvm_main.c
+++ linux-2.6.24-rc2/drivers/kvm/kvm_main.c
@@ -217,7 +217,10 @@
if (cpu != -1 && cpu != raw_smp_processor_id())
cpu_set(cpu, cpus);
}
+
+#ifdef CONFIG_SMP
smp_call_function_mask(cpus, ack_flush, NULL, 1);
+#endif
}

int kvm_vcpu_init(struct kvm_vcpu *vcpu, struct kvm *kvm, unsigned id)


--
Miguel Botón
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/