]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit75e09342ef7522b36ac90dc5818317442a656f10
treecbbec5559a3cb50e47c73494a9f256155a284efe
parentb4cd2548f921dc12d3671730fe21668fafd08ac2
iovec: move memcpy_from/toiovecend to lib/iovec.c

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

commit a799d04b18e16c3f33f95f5e78549fa4c7c65017
    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