All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jes Sorensen <jes@sgi.com>
To: Avi Kivity <avi@qumranet.com>, kvm@vger.kernel.org
Subject: [patch] qemu compile warning
Date: Fri, 05 Sep 2008 16:05:55 +0200	[thread overview]
Message-ID: <48C13CC3.60100@sgi.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 113 bytes --]

Hi,

This one is more of a generic qemu nit, do you want to take it or should
I send it elsewhere?

Cheers,
Jes


[-- Attachment #2: 0102-qemu-fix-signness.patch --]
[-- Type: text/plain, Size: 837 bytes --]

Fix type of nb_sectors to match parameter of bdrv_get_geometry().

Signed-off-by: Jes Sorensen <jes@sgi.com>

---
 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);

             reply	other threads:[~2008-09-05 14:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-05 14:05 Jes Sorensen [this message]
2008-09-07  6:30 ` [patch] qemu compile warning Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48C13CC3.60100@sgi.com \
    --to=jes@sgi.com \
    --cc=avi@qumranet.com \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.