From: Cyrill Gorcunov <gorcunov@gmail.com>
To: Pekka Enberg <penberg@kernel.org>
Cc: Sasha Levin <levinsasha928@gmail.com>,
Ingo Molnar <mingo@elte.hu>, Asias He <asias.hejun@gmail.com>,
KVM-ML <kvm@vger.kernel.org>,
Thomas Gleixner <tglx@linutronix.de>
Subject: [PATCH] kvm tools: Define __compiletime_error helper
Date: Sun, 18 Dec 2011 19:16:09 +0400 [thread overview]
Message-ID: <20111218151609.GT11271@moon> (raw)
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_ */
reply other threads:[~2011-12-18 15:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111218151609.GT11271@moon \
--to=gorcunov@gmail.com \
--cc=asias.hejun@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=levinsasha928@gmail.com \
--cc=mingo@elte.hu \
--cc=penberg@kernel.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).