From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyrill Gorcunov Subject: [PATCH] kvm tools: Define __compiletime_error helper Date: Sun, 18 Dec 2011 19:16:09 +0400 Message-ID: <20111218151609.GT11271@moon> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Sasha Levin , Ingo Molnar , Asias He , KVM-ML , Thomas Gleixner To: Pekka Enberg Return-path: Received: from mail-ee0-f46.google.com ([74.125.83.46]:49130 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751670Ab1LRPQO (ORCPT ); Sun, 18 Dec 2011 10:16:14 -0500 Received: by eekc4 with SMTP id c4so4650316eek.19 for ; Sun, 18 Dec 2011 07:16:13 -0800 (PST) Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: 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 proto= type for =E2=80=98__xchg_wrong_size=E2=80=99 [-Werror=3Dmissing-prototy= pes] | ../../arch/x86/include/asm/cmpxchg.h: In function =E2=80=98__xchg_wr= ong_size=E2=80=99: | ../../arch/x86/include/asm/cmpxchg.h:12:2: error: expected declarati= on specifiers before =E2=80=98__compiletime_error=E2=80=99 Signed-off-by: Cyrill Gorcunov --- 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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- 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_ =20 +#ifndef __compiletime_error +# define __compiletime_error(message) +#endif + #define notrace __attribute__((no_instrument_function)) =20 #endif /* KVM_COMPILER_H_ */