From: Tristan Gingold Subject: [PATCH] include/xen/smp.h (avoid a warning). Date: Thu, 20 Oct 2005 10:55:39 +0200 Message-ID: <200510201055.39728.Tristan.Gingold@bull.net> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_Lu1VDjwG/VTHA2O" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: xen-ia64-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_Lu1VDjwG/VTHA2O Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Hi, simple patch to avoid a gcc warning if CONFIG_SMP is not defined. Tristan. --Boundary-00=_Lu1VDjwG/VTHA2O Content-Transfer-Encoding: 7bit Content-Type: text/x-diff; charset="us-ascii"; name="xen-warn2.diffs" Content-Disposition: attachment; filename="xen-warn2.diffs" # HG changeset patch # User tristan.gingold@bull.net # 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) --Boundary-00=_Lu1VDjwG/VTHA2O Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_Lu1VDjwG/VTHA2O--