From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dShzR-0002Dg-Le for qemu-devel@nongnu.org; Wed, 05 Jul 2017 06:57:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dShzM-0007EF-SB for qemu-devel@nongnu.org; Wed, 05 Jul 2017 06:57:01 -0400 Received: from mail-wr0-f182.google.com ([209.85.128.182]:34517) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dShzM-0007Cl-M8 for qemu-devel@nongnu.org; Wed, 05 Jul 2017 06:56:56 -0400 Received: by mail-wr0-f182.google.com with SMTP id 77so261070407wrb.1 for ; Wed, 05 Jul 2017 03:56:56 -0700 (PDT) References: <20170704220346.29244-1-marcandre.lureau@redhat.com> <20170704220346.29244-5-marcandre.lureau@redhat.com> From: Paolo Bonzini Message-ID: Date: Wed, 5 Jul 2017 12:56:53 +0200 MIME-Version: 1.0 In-Reply-To: <20170704220346.29244-5-marcandre.lureau@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH 04/35] coroutine: remove coroutine_fn from qemu_coroutine_self() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= , qemu-devel@nongnu.org Cc: Kevin Wolf , Stefan Hajnoczi On 05/07/2017 00:03, Marc-André Lureau wrote: > The function may be safely called from non-coroutine context. > > Signed-off-by: Marc-André Lureau It can, but it shouldn't... What are the callers? Paolo > --- > include/qemu/coroutine.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/qemu/coroutine.h b/include/qemu/coroutine.h > index 35ff394f51..ec55fe295c 100644 > --- a/include/qemu/coroutine.h > +++ b/include/qemu/coroutine.h > @@ -121,7 +121,7 @@ void coroutine_fn qemu_coroutine_yield(void); > /** > * Get the currently executing coroutine > */ > -Coroutine *coroutine_fn qemu_coroutine_self(void); > +Coroutine *qemu_coroutine_self(void); > > /** > * Return whether or not currently inside a coroutine >