Skip to contentSkip to conversation

non-SMP build fix

PATCH New Hollis Blanchard 1 participant 1 message Mar 31, 2005 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 non-SMP build fix

With CONFIG_SMP undefined, this patch is needed to fix these errors:
schedule.c: In function `schedulers_start':
schedule.c:559: warning: statement with no effect schedule.c:562: warning: statement with no effect

Non-SMP build still doesn't work on x86 because touch_nmi_watchdog is declared in asm/apic.h, and there is no policy of including the headers you use. I would suggest moving the declaration to an arch-neutral header.

Signature · 2 lines
Hollis Blanchard
IBM Linux Technology Center

===== include/xen/smp.h 1.8 vs edited =====

include/xen/smp.h renamed from xen/include/xen/smp.h +1 -1
@@ -86,7 +86,7 @@
 #define kernel_lock()
 #define cpu_logical_map(cpu)			0
 #define cpu_number_map(cpu)			0
-#define smp_call_function(func,info,retry,wait)	0
+#define smp_call_function(func,info,retry,wait) ((void)0)
 #define smp_subset_call_function(f,i,w,c)	({ if ( (c&1) ) (*f)(i); 0; })
 #define cpu_online_map				1
 

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