Received: from eggs.gnu.org ([2001:4830:134:3::10]:39502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmkpj-0005WT-8z for qemu-devel@nongnu.org; Wed, 21 Sep 2016 12:57:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmkpg-0002ri-62 for qemu-devel@nongnu.org; Wed, 21 Sep 2016 12:57:19 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:59058) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmkpf-0002rO-SK for qemu-devel@nongnu.org; Wed, 21 Sep 2016 12:57:16 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u8LGrVQp063372 for ; Wed, 21 Sep 2016 12:57:15 -0400 Received: from e38.co.us.ibm.com (e38.co.us.ibm.com [32.97.110.159]) by mx0a-001b2d01.pphosted.com with ESMTP id 25kmfdv725-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 21 Sep 2016 12:57:14 -0400 Received: from localhost by e38.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 21 Sep 2016 10:57:12 -0600 From: Greg Kurz Date: Wed, 21 Sep 2016 18:57:03 +0200 In-Reply-To: <147447700612.30952.9420141963781948805.stgit@bahia> References: <147447700612.30952.9420141963781948805.stgit@bahia> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <147447702371.30952.12299213732680238463.stgit@bahia> Subject: [Qemu-devel] [PATCH v2 2/9] virtio-blk: turn virtio_blk_handle_request() into a static function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , "Michael S. Tsirkin" , Jason Wang , Greg Kurz , Max Reitz , "Aneesh Kumar K.V" , Stefan Hajnoczi , Cornelia Huck , Paolo Bonzini It is only used locally since this commit: 03de2f527499 virtio-blk: do not use vring in dataplane Signed-off-by: Greg Kurz --- hw/block/virtio-blk.c | 2 +- include/hw/virtio/virtio-blk.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c index 3a6112fbf4c4..09579968ad89 100644 --- a/hw/block/virtio-blk.c +++ b/hw/block/virtio-blk.c @@ -468,7 +468,7 @@ static bool virtio_blk_sect_range_ok(VirtIOBlock *dev, return true; } -void virtio_blk_handle_request(VirtIOBlockReq *req, MultiReqBuffer *mrb) +static void virtio_blk_handle_request(VirtIOBlockReq *req, MultiReqBuffer *mrb) { uint32_t type; struct iovec *in_iov = req->elem.in_sg; diff --git a/include/hw/virtio/virtio-blk.h b/include/hw/virtio/virtio-blk.h index 180bd8db5df2..07992a96763d 100644 --- a/include/hw/virtio/virtio-blk.h +++ b/include/hw/virtio/virtio-blk.h @@ -84,8 +84,6 @@ void virtio_blk_init_request(VirtIOBlock *s, VirtQueue *vq, VirtIOBlockReq *req); void virtio_blk_free_request(VirtIOBlockReq *req); -void virtio_blk_handle_request(VirtIOBlockReq *req, MultiReqBuffer *mrb); - void virtio_blk_submit_multireq(BlockBackend *blk, MultiReqBuffer *mrb); void virtio_blk_handle_vq(VirtIOBlock *s, VirtQueue *vq);