From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:56200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbVEP-0004rY-9g for qemu-devel@nongnu.org; Mon, 04 Jun 2012 07:13:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SbVEJ-000638-7h for qemu-devel@nongnu.org; Mon, 04 Jun 2012 07:13:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58748) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbVEI-00062S-Vv for qemu-devel@nongnu.org; Mon, 04 Jun 2012 07:13:47 -0400 From: Kevin Wolf Date: Mon, 4 Jun 2012 13:13:29 +0200 Message-Id: <1338808409-19501-13-git-send-email-kwolf@redhat.com> In-Reply-To: <1338808409-19501-1-git-send-email-kwolf@redhat.com> References: <1338808409-19501-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 12/12] sheepdog: add coroutine_fn markers to coroutine functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: kwolf@redhat.com, qemu-devel@nongnu.org From: MORITA Kazutaka Signed-off-by: MORITA Kazutaka Reviewed-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- block/sheepdog.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/block/sheepdog.c b/block/sheepdog.c index f46ca8f..8877f45 100644 --- a/block/sheepdog.c +++ b/block/sheepdog.c @@ -522,8 +522,8 @@ static int send_req(int sockfd, SheepdogReq *hdr, void *data, return ret; } -static int send_co_req(int sockfd, SheepdogReq *hdr, void *data, - unsigned int *wlen) +static coroutine_fn int send_co_req(int sockfd, SheepdogReq *hdr, void *data, + unsigned int *wlen) { int ret; @@ -540,6 +540,7 @@ static int send_co_req(int sockfd, SheepdogReq *hdr, void *data, return ret; } + static int do_req(int sockfd, SheepdogReq *hdr, void *data, unsigned int *wlen, unsigned int *rlen) { @@ -576,8 +577,8 @@ out: return ret; } -static int do_co_req(int sockfd, SheepdogReq *hdr, void *data, - unsigned int *wlen, unsigned int *rlen) +static coroutine_fn int do_co_req(int sockfd, SheepdogReq *hdr, void *data, + unsigned int *wlen, unsigned int *rlen) { int ret; -- 1.7.6.5