Skip to contentSkip to conversation

include/xen/smp.h (avoid a warning).

PATCH Applied Tristan Gingold 2 participants 2 messages Oct 20, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 include/xen/smp.h (avoid a warning).

Hi,

simple patch to avoid a gcc warning if CONFIG_SMP is not defined.

Tristan.

# HG changeset patch
# User [email protected]
# Node ID 82481ae1fa183f99bab7a96eeeddc20fbd8d33b3
# Parent 8746faa6f5c837b11bb025c6512a642980ac903b Makes smp_call_function a real stmt if CONFIG_SMP is not defined. This avoid a GCC warning.

xen/include/xen/smp.h +1 -1
diff -r 8746faa6f5c8 -r 82481ae1fa18 xen/include/xen/smp.h
@@ -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)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 1 line · Tristan Gingold

simple patch to avoid a gcc warning if CONFIG_SMP is not defined.

applied, Thanks

Signature · 1 line
Vincent Hanquez