From: Michal Novotny <minovotn@redhat.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: [Qemu-devel] Re: [PATCH] Fix vhost_net compilation errors for i386-softmmu target
Date: Tue, 21 Sep 2010 09:03:16 +0200 [thread overview]
Message-ID: <4C9858B4.4090305@redhat.com> (raw)
In-Reply-To: <20100920175328.GC30611@redhat.com>
On 09/20/2010 07:53 PM, Michael S. Tsirkin wrote:
> On Mon, Sep 20, 2010 at 11:36:58AM +0200, Michal Novotny wrote:
>
>> Hi,
>> there were compilation errors when I was trying to compile
>> i386-softmmu target on i386
>> host (running on Fedora-13 with development version of qemu
>> downloaded from git).
>>
>> There were errors of comparison of unsigned expression was always
>> true which made it
>> unable to compile. This simple fix fixes the issue.
>>
>> ...
>> cc1: warnings being treated as errors
>> .../hw/vhost_net.c: In function ‘vhost_net_start’:
>> .../vhost_net.c:154: error: comparison of unsigned expression>= 0
>> is always true
>> make[1]: *** [vhost_net.o] Error 1
>> make: *** [subdir-i386-softmmu] Error 2
>>
>> Signed-off-by: Michal Novotny<minovotn@redhat.com>
>>
>> --
>> Michal Novotny<minovotn@redhat.com>, RHCE
>> Virtualization Team (xen userspace), Red Hat
>>
>>
> This is not the right fix though. I have queued
> the correct one on my tree, will send pull request.
>
>
Oh, ok. Nevertheless according to the definition of file.index to be
unsigned it can never be negative value so that's why I implemented the
check against greater than zero rather than equal or greater than zero
but maybe that's not the right way to fix it like you say. However,
since your patch is already in the queue as you told me it's fine.
Michal
--
Michal Novotny<minovotn@redhat.com>, RHCE
Virtualization Team (xen userspace), Red Hat
next prev parent reply other threads:[~2010-09-21 7:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-20 9:36 [Qemu-devel] [PATCH] Fix vhost_net compilation errors for i386-softmmu target Michal Novotny
2010-09-20 17:53 ` [Qemu-devel] " Michael S. Tsirkin
2010-09-21 7:03 ` Michal Novotny [this message]
2010-09-20 18:03 ` [Qemu-devel] " Blue Swirl
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=4C9858B4.4090305@redhat.com \
--to=minovotn@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).