iovec: move memcpy_from/toiovecend to lib/iovec.c
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 19 Jun 2014 18:22:56 +0000 (21:22 +0300)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 27 Jun 2014 18:47:58 +0000 (11:47 -0700)
commitac5ccdba3a1659b3517e7e99ef7d35a6a2d77cf4
treecbbec5559a3cb50e47c73494a9f256155a284efe
parent97c99b47ac58bacb7c09e1f47d5d184434f6b06a
iovec: move memcpy_from/toiovecend to lib/iovec.c

ERROR: "memcpy_fromiovecend" [drivers/vhost/vhost_scsi.ko] undefined!

commit 9f977ef7b671f6169eca78bf40f230fe84b7c7e5
    vhost-scsi: Include prot_bytes into expected data transfer length
in target-pending makes drivers/vhost/scsi.c call memcpy_fromiovecend().
This function is not available when CONFIG_NET is not enabled.

socket.h already includes uio.h, so no callers need updating.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
include/linux/socket.h
include/linux/uio.h
lib/iovec.c
net/core/iovec.c