All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] include/xen/smp.h (avoid a warning).
@ 2005-10-20  8:55 Tristan Gingold
  2005-10-20 10:10 ` Vincent Hanquez
  0 siblings, 1 reply; 2+ messages in thread
From: Tristan Gingold @ 2005-10-20  8:55 UTC (permalink / raw)
  To: xen-devel; +Cc: xen-ia64-devel

[-- Attachment #1: Type: text/plain, Size: 81 bytes --]

Hi,

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

Tristan.

[-- Attachment #2: xen-warn2.diffs --]
[-- Type: text/x-diff, Size: 770 bytes --]

# 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)

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] include/xen/smp.h (avoid a warning).
  2005-10-20  8:55 [PATCH] include/xen/smp.h (avoid a warning) Tristan Gingold
@ 2005-10-20 10:10 ` Vincent Hanquez
  0 siblings, 0 replies; 2+ messages in thread
From: Vincent Hanquez @ 2005-10-20 10:10 UTC (permalink / raw)
  To: Tristan Gingold; +Cc: xen-devel, xen-ia64-devel

On Thu, Oct 20, 2005 at 10:55:39AM +0200, Tristan Gingold wrote:
> simple patch to avoid a gcc warning if CONFIG_SMP is not defined.

applied, Thanks
-- 
Vincent Hanquez

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-10-20 10:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-20  8:55 [PATCH] include/xen/smp.h (avoid a warning) Tristan Gingold
2005-10-20 10:10 ` Vincent Hanquez

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.