ia64/xen-unstable

changeset 7451:6450e40ad21a

smp_call_function() must be usable as an expression
return an integer.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Oct 20 11:27:51 2005 +0100 (2005-10-20)
parents 7d50f64aada7
children 27c8bc033f16
files xen/include/xen/smp.h
line diff
     1.1 --- a/xen/include/xen/smp.h	Thu Oct 20 11:25:55 2005 +0100
     1.2 +++ b/xen/include/xen/smp.h	Thu Oct 20 11:27:51 2005 +0100
     1.3 @@ -90,7 +90,7 @@ void smp_prepare_boot_cpu(void);
     1.4  #define smp_processor_id()			0
     1.5  #endif
     1.6  #define hard_smp_processor_id()			0
     1.7 -#define smp_call_function(func,info,retry,wait)	do {} while (0)
     1.8 +#define smp_call_function(func,info,retry,wait)	({ do {} while (0); 0; })
     1.9  #define on_each_cpu(func,info,retry,wait)	({ func(info); 0; })
    1.10  #define num_booting_cpus()			1
    1.11  #define smp_prepare_boot_cpu()			do {} while (0)