[tip:tools/kvm] kvm tools: Define __compiletime_error helper

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit-ID:  2cf610977e9059d87db41d1e48f95a533ff55f90
Gitweb:     http://git.kernel.org/tip/2cf610977e9059d87db41d1e48f95a533ff55f90
Author:     Cyrill Gorcunov <gorcunov@xxxxxxxxx>
AuthorDate: Sun, 18 Dec 2011 19:16:09 +0400
Committer:  Pekka Enberg <penberg@xxxxxxxxxx>
CommitDate: Mon, 19 Dec 2011 19:41:29 +0200

kvm tools: Define __compiletime_error helper

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@xxxxxxxxx>
Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx>
---
 tools/kvm/include/kvm/compiler.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/tools/kvm/include/kvm/compiler.h b/tools/kvm/include/kvm/compiler.h
index b203480..2013a83 100644
--- a/tools/kvm/include/kvm/compiler.h
+++ b/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_ */
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Stable Commits]     [Linux Stable Kernel]     [Linux Kernel]     [Linux USB Devel]     [Linux Video &Media]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux