From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRTjc-0002f0-GX for qemu-devel@nongnu.org; Thu, 16 Jul 2009 12:23:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRTjU-0002ZA-WA for qemu-devel@nongnu.org; Thu, 16 Jul 2009 12:23:00 -0400 Received: from [199.232.76.173] (port=49206 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRTjU-0002Yr-Dq for qemu-devel@nongnu.org; Thu, 16 Jul 2009 12:22:56 -0400 Received: from cantor2.suse.de ([195.135.220.15]:51678 helo=mx2.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MRTjU-0006rM-6i for qemu-devel@nongnu.org; Thu, 16 Jul 2009 12:22:56 -0400 Received: from relay1.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id A6C5E8726A for ; Thu, 16 Jul 2009 18:22:54 +0200 (CEST) From: Alexander Graf Date: Thu, 16 Jul 2009 18:22:51 +0200 Message-Id: <1247761371-16980-5-git-send-email-agraf@suse.de> In-Reply-To: <1247761371-16980-4-git-send-email-agraf@suse.de> References: <1247761371-16980-1-git-send-email-agraf@suse.de> <1247761371-16980-2-git-send-email-agraf@suse.de> <1247761371-16980-3-git-send-email-agraf@suse.de> <1247761371-16980-4-git-send-email-agraf@suse.de> Subject: [Qemu-devel] [PATCH 4/4] Fix warning in kvm-all.c List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This fixes a warning I stumbled across while compiling qemu on PPC64. --- kvm-all.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index 8567ac9..961fa32 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -226,7 +226,7 @@ static int kvm_dirty_pages_log_change(target_phys_addr_t phys_addr, if (mem == NULL) { fprintf(stderr, "BUG: %s: invalid parameters " TARGET_FMT_plx "-" TARGET_FMT_plx "\n", __func__, phys_addr, - phys_addr + size - 1); + (target_phys_addr_t)(phys_addr + size - 1)); return -EINVAL; } -- 1.6.0.2