# HG changeset patch # User tristan.gingold@xxxxxxxx # Node ID 82481ae1fa183f99bab7a96eeeddc20fbd8d33b3 # Parent 8746faa6f5c837b11bb025c6512a642980ac903b Makes smp_call_function a real stmt if CONFIG_SMP is not defined. This avoid a GCC warning. diff -r 8746faa6f5c8 -r 82481ae1fa18 xen/include/xen/smp.h --- a/xen/include/xen/smp.h Wed Oct 19 13:14:56 2005 +++ b/xen/include/xen/smp.h Thu Oct 20 06:31:36 2005 @@ -90,7 +90,7 @@ #define smp_processor_id() 0 #endif #define hard_smp_processor_id() 0 -#define smp_call_function(func,info,retry,wait) 0 +#define smp_call_function(func,info,retry,wait) do {} while (0) #define on_each_cpu(func,info,retry,wait) ({ func(info); 0; }) #define num_booting_cpus() 1 #define smp_prepare_boot_cpu() do {} while (0)