From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jes Sorensen Subject: [patch] qemu compile warning Date: Fri, 05 Sep 2008 16:05:55 +0200 Message-ID: <48C13CC3.60100@sgi.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000106050802090403080502" To: Avi Kivity , kvm@vger.kernel.org Return-path: Received: from netops-testserver-3-out.sgi.com ([192.48.171.28]:51618 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752828AbYIEOF5 (ORCPT ); Fri, 5 Sep 2008 10:05:57 -0400 Sender: kvm-owner@vger.kernel.org List-ID: This is a multi-part message in MIME format. --------------000106050802090403080502 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, This one is more of a generic qemu nit, do you want to take it or should I send it elsewhere? Cheers, Jes --------------000106050802090403080502 Content-Type: text/plain; name="0102-qemu-fix-signness.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="0102-qemu-fix-signness.patch" Fix type of nb_sectors to match parameter of bdrv_get_geometry(). Signed-off-by: Jes Sorensen --- qemu/block.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: kvm-userspace.git/qemu/block.c =================================================================== --- kvm-userspace.git.orig/qemu/block.c +++ kvm-userspace.git/qemu/block.c @@ -771,7 +771,7 @@ int ret, i, heads, sectors, cylinders; struct partition *p; uint32_t nr_sects; - int64_t nb_sectors; + uint64_t nb_sectors; buf = qemu_memalign(512, 512); if (buf == NULL) @@ -819,7 +819,7 @@ { int translation, lba_detected = 0; int cylinders, heads, secs; - int64_t nb_sectors; + uint64_t nb_sectors; /* if a geometry hint is available, use it */ bdrv_get_geometry(bs, &nb_sectors); --------------000106050802090403080502--