From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLVWg-0008U0-4G for qemu-devel@nongnu.org; Thu, 06 Mar 2014 05:27:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLVWX-0001tI-O2 for qemu-devel@nongnu.org; Thu, 06 Mar 2014 05:27:42 -0500 Received: from mail-pb0-x229.google.com ([2607:f8b0:400e:c01::229]:54185) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLVWX-0001sz-HS for qemu-devel@nongnu.org; Thu, 06 Mar 2014 05:27:33 -0500 Received: by mail-pb0-f41.google.com with SMTP id jt11so2433373pbb.14 for ; Thu, 06 Mar 2014 02:27:32 -0800 (PST) From: Xuebing Wang Date: Thu, 6 Mar 2014 18:27:09 +0800 Message-Id: <1394101634-21509-3-git-send-email-xbing6@gmail.com> In-Reply-To: <1394101634-21509-1-git-send-email-xbing6@gmail.com> References: <1394101634-21509-1-git-send-email-xbing6@gmail.com> Subject: [Qemu-devel] [PATCH 2/7] kvm-i386: fix build for x86_64-linux-user after applying previous patch List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , xbing6@gmail.com, Gleb Natapov As explained in previous patch, kvm functions won't be optimized out for non-CONFIG_KVM. Signed-off-by: Xuebing Wang --- target-i386/kvm-stub.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/target-i386/kvm-stub.c b/target-i386/kvm-stub.c index 2b9e801..0ef642d 100644 --- a/target-i386/kvm-stub.c +++ b/target-i386/kvm-stub.c @@ -17,14 +17,8 @@ bool kvm_allows_irq0_override(void) return 1; } -#ifndef __OPTIMIZE__ -/* This function is only called inside conditionals which we - * rely on the compiler to optimize out when CONFIG_KVM is not - * defined. - */ uint32_t kvm_arch_get_supported_cpuid(KVMState *env, uint32_t function, uint32_t index, int reg) { abort(); } -#endif -- 1.7.9.5