From patchwork Thu Nov 25 07:20:46 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 73027 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 4A30CB7043 for ; Thu, 25 Nov 2010 19:49:59 +1100 (EST) Received: from localhost ([127.0.0.1]:33241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLWxg-00043d-N4 for incoming@patchwork.ozlabs.org; Thu, 25 Nov 2010 03:13:48 -0500 Received: from [140.186.70.92] (port=35987 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLW8Q-0001hH-26 for qemu-devel@nongnu.org; Thu, 25 Nov 2010 02:20:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PLW8O-0006Pg-36 for qemu-devel@nongnu.org; Thu, 25 Nov 2010 02:20:49 -0500 Received: from cantor2.suse.de ([195.135.220.15]:55991 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PLW8N-0006PF-UL for qemu-devel@nongnu.org; Thu, 25 Nov 2010 02:20:48 -0500 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.221.2]) by mx2.suse.de (Postfix) with ESMTP id CB41386EE4; Thu, 25 Nov 2010 08:20:46 +0100 (CET) From: Alexander Graf To: QEMU-devel Developers Date: Thu, 25 Nov 2010 08:20:46 +0100 Message-Id: <1290669646-12150-1-git-send-email-agraf@suse.de> X-Mailer: git-send-email 1.6.0.2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 Cc: Avi Kivity Subject: [Qemu-devel] [PATCH] ppc: kvm: fix signedness warning X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org I get a warning on a signed comparison with an unsigned variable, so let's make the variable signed and be happy. Signed-off-by: Alexander Graf --- target-ppc/kvm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c index 5cacef7..5caa07c 100644 --- a/target-ppc/kvm.c +++ b/target-ppc/kvm.c @@ -132,7 +132,7 @@ int kvm_arch_get_registers(CPUState *env) { struct kvm_regs regs; struct kvm_sregs sregs; - uint32_t i, ret; + int i, ret; ret = kvm_vcpu_ioctl(env, KVM_GET_REGS, ®s); if (ret < 0)