kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kvm tools: Define __compiletime_error helper
@ 2011-12-18 15:16 Cyrill Gorcunov
  0 siblings, 0 replies; only message in thread
From: Cyrill Gorcunov @ 2011-12-18 15:16 UTC (permalink / raw)
  To: Pekka Enberg; +Cc: Sasha Levin, Ingo Molnar, Asias He, KVM-ML, Thomas Gleixner

To eliminate compile errors like

 |  CC       builtin-run.o
 | In file included from ../../arch/x86/include/asm/system.h:7:0,
 |                 from include/kvm/barrier.h:13,
 |                 from builtin-run.c:16:
 | ../../arch/x86/include/asm/cmpxchg.h:11:13: error: no previous prototype for ‘__xchg_wrong_size’ [-Werror=missing-prototypes]
 | ../../arch/x86/include/asm/cmpxchg.h: In function ‘__xchg_wrong_size’:
 | ../../arch/x86/include/asm/cmpxchg.h:12:2: error: expected declaration specifiers before ‘__compiletime_error’

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---

Not sure if it's me only or not. I've had no such problems before.

 tools/kvm/include/kvm/compiler.h |    4 ++++
 1 file changed, 4 insertions(+)

Index: linux-2.6.git/tools/kvm/include/kvm/compiler.h
===================================================================
--- linux-2.6.git.orig/tools/kvm/include/kvm/compiler.h
+++ linux-2.6.git/tools/kvm/include/kvm/compiler.h
@@ -1,6 +1,10 @@
 #ifndef KVM_COMPILER_H_
 #define KVM_COMPILER_H_
 
+#ifndef __compiletime_error
+# define __compiletime_error(message)
+#endif
+
 #define notrace __attribute__((no_instrument_function))
 
 #endif /* KVM_COMPILER_H_ */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-12-18 15:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-18 15:16 [PATCH] kvm tools: Define __compiletime_error helper Cyrill Gorcunov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).