All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Williamson <alex.williamson@hp.com>
To: Mark McLoughlin <markmc@redhat.com>
Cc: kvm <kvm@vger.kernel.org>, qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [PATCH 2/5] virtio-net: Add a virtqueue for control commands from the guest
Date: Wed, 14 Jan 2009 09:57:28 -0700	[thread overview]
Message-ID: <1231952248.7109.341.camel@lappy> (raw)
In-Reply-To: <1231928115.4944.293.camel@localhost.localdomain>

On Wed, 2009-01-14 at 10:15 +0000, Mark McLoughlin wrote:
> On Tue, 2009-01-13 at 14:23 -0700, Alex Williamson wrote:
> > +
> > +        ctrl = (void *)elem.out_sg[0].iov_base;
> > +        status = (void *)elem.in_sg[elem.in_num - 1].iov_base;
> 
> These casts aren't needed - iov_base is a void pointer.

Thanks

Alex

-- 
Alex Williamson                             HP Open Source & Linux Org.


WARNING: multiple messages have this Message-ID (diff)
From: Alex Williamson <alex.williamson@hp.com>
To: Mark McLoughlin <markmc@redhat.com>
Cc: qemu-devel <qemu-devel@nongnu.org>, kvm <kvm@vger.kernel.org>
Subject: [Qemu-devel] Re: [PATCH 2/5] virtio-net: Add a virtqueue for control commands from the guest
Date: Wed, 14 Jan 2009 09:57:28 -0700	[thread overview]
Message-ID: <1231952248.7109.341.camel@lappy> (raw)
In-Reply-To: <1231928115.4944.293.camel@localhost.localdomain>

On Wed, 2009-01-14 at 10:15 +0000, Mark McLoughlin wrote:
> On Tue, 2009-01-13 at 14:23 -0700, Alex Williamson wrote:
> > +
> > +        ctrl = (void *)elem.out_sg[0].iov_base;
> > +        status = (void *)elem.in_sg[elem.in_num - 1].iov_base;
> 
> These casts aren't needed - iov_base is a void pointer.

Thanks

Alex

-- 
Alex Williamson                             HP Open Source & Linux Org.

  reply	other threads:[~2009-01-14 16:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-13 21:23 [PATCH 2/5] virtio-net: Add a virtqueue for control commands from the guest Alex Williamson
2009-01-13 21:23 ` [Qemu-devel] " Alex Williamson
2009-01-14 10:15 ` Mark McLoughlin
2009-01-14 10:15   ` [Qemu-devel] " Mark McLoughlin
2009-01-14 16:57   ` Alex Williamson [this message]
2009-01-14 16:57     ` Alex Williamson

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=1231952248.7109.341.camel@lappy \
    --to=alex.williamson@hp.com \
    --cc=kvm@vger.kernel.org \
    --cc=markmc@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 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.