Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L0i0j-0005Mn-Hn for qemu-devel@nongnu.org; Thu, 13 Nov 2008 14:37:49 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L0i0i-0005Ld-MG for qemu-devel@nongnu.org; Thu, 13 Nov 2008 14:37:48 -0500 Received: from [199.232.76.173] (port=49205 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0i0i-0005LB-AY for qemu-devel@nongnu.org; Thu, 13 Nov 2008 14:37:48 -0500 Received: from savannah.gnu.org ([199.232.41.3]:49136 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L0i0i-00071f-5t for qemu-devel@nongnu.org; Thu, 13 Nov 2008 14:37:48 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1L0i0h-0000HF-Cq for qemu-devel@nongnu.org; Thu, 13 Nov 2008 19:37:47 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1L0i0h-0000HB-5c for qemu-devel@nongnu.org; Thu, 13 Nov 2008 19:37:47 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Thu, 13 Nov 2008 19:37:47 +0000 Subject: [Qemu-devel] [5718] x86: fix warning without CONFIG_KVM (Mark McLoughlin) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5718 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5718 Author: aliguori Date: 2008-11-13 19:37:46 +0000 (Thu, 13 Nov 2008) Log Message: ----------- x86: fix warning without CONFIG_KVM (Mark McLoughlin) Warning is: target-i386/helper.c: In function `cpu_x86_cpuid': target-i386/helper.c:1373: warning: implicit declaration of function `host_cpuid' Signed-off-by: Mark McLoughlin Signed-off-by: Anthony Liguori Modified Paths: -------------- trunk/target-i386/helper.c Modified: trunk/target-i386/helper.c =================================================================== --- trunk/target-i386/helper.c 2008-11-13 19:28:04 UTC (rev 5717) +++ trunk/target-i386/helper.c 2008-11-13 19:37:46 UTC (rev 5718) @@ -1296,10 +1296,10 @@ } #endif /* !CONFIG_USER_ONLY */ -#if defined(CONFIG_KVM) static void host_cpuid(uint32_t function, uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx) { +#if defined(CONFIG_KVM) uint32_t vec[4]; #ifdef __x86_64__ @@ -1327,8 +1327,8 @@ *ecx = vec[2]; if (edx) *edx = vec[3]; +#endif } -#endif void cpu_x86_cpuid(CPUX86State *env, uint32_t index, uint32_t *eax, uint32_t *ebx,