[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130516020848.GB23441@hj.localdomain>
Date: Thu, 16 May 2013 10:08:48 +0800
From: Asias He <asias@...hat.com>
To: Rusty Russell <rusty@...tcorp.com.au>
Cc: "Michael S. Tsirkin" <mst@...hat.com>,
Nicholas Bellinger <nab@...ux-iscsi.org>, kvm@...r.kernel.org,
virtualization@...ts.linux-foundation.org,
target-devel@...r.kernel.org,
Stephen Rothwell <sfr@...b.auug.org.au>,
Randy Dunlap <rdunlap@...radead.org>,
linux-next@...r.kernel.org, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org
Subject: Re: [PATCH] vhost-scsi: Depend on NET for memcpy_fromiovec
On Wed, May 15, 2013 at 02:47:53PM +0930, Rusty Russell wrote:
> Asias He <asias@...hat.com> writes:
> > scsi.c includes vhost.c which uses memcpy_fromiovec.
> >
> > This patch fixes this build failure.
> >
> > From Randy Dunlap:
> > '''
> > on x86_64:
> >
> > ERROR: "memcpy_fromiovec" [drivers/vhost/vhost_scsi.ko] undefined!
> >
> > It needs to depend on NET since net/core/ provides that function.
> > '''
>
> Proper fix please.
--verbose please ;-)
Making VHOST_SCSI depends on NET looks weird but this is because vhost
core depends on it. A bunch of patches are cleaning this up. Since MST
wanted do the vhost.ko split up in 3.11, plus your WIP vringh work, so I
wanted the fix for 3.10 as minimum as possible.
Other users are using memcpy_fromiovec and friends outside net. It seems
a good idea to put it in a util library. e.g. crypto/algif_skcipher.c
which also depends on NET for it.
> Though I can't see why you thought this was a good idea. Nonetheless, I
> shan't highlight why: I have far too much respect for your intellects
> and abilities.
>
> No, don't thank me!
Interesting.
> Rusty.
--
Asias
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists