Received: from eggs.gnu.org ([140.186.70.92]:51100) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6N9D-0001gR-76 for qemu-devel@nongnu.org; Wed, 21 Sep 2011 09:47:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6N98-0008WU-Ev for qemu-devel@nongnu.org; Wed, 21 Sep 2011 09:47:35 -0400 Received: from gw.ac.upc.edu ([147.83.30.3]:45196) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6N98-0008W9-7G for qemu-devel@nongnu.org; Wed, 21 Sep 2011 09:47:30 -0400 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <20110921132322.3516.25189.stgit@ginnungagap.bsc.es> Date: Wed, 21 Sep 2011 15:45:47 +0200 In-Reply-To: <20110921132322.3516.25189.stgit@ginnungagap.bsc.es> (=?utf-8?Q?=22Llu=C3=ADs?= Vilanova"'s message of "Wed, 21 Sep 2011 15:23:22 +0200") Message-ID: <87aa9yvwj8.fsf@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 1/3] Make 'qemu_init_vcpu' a function (instead of a macro) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Jan Kiszka , Stefan Hajnoczi Please ignore these patches. Implementation of 'qemu_init_vcpu' in CONFIG_USER_ONLY must be moved into a= C file to avoid an include loop between trace.h and qemu-common.h Ideas on which file this is supposed to go? Lluis Llu=C3=ADs Vilanova writes: > Signed-off-by: Llu=C3=ADs Vilanova > --- > qemu-common.h | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > diff --git a/qemu-common.h b/qemu-common.h > index 404c421..fca101e 100644 > --- a/qemu-common.h > +++ b/qemu-common.h > @@ -297,7 +297,9 @@ struct qemu_work_item { > }; =20 > #ifdef CONFIG_USER_ONLY > -#define qemu_init_vcpu(env) do { } while (0) > +static inline void qemu_init_vcpu(void *env) > +{ > +} > #else > void qemu_init_vcpu(void *env); > #endif --=20 "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth