From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45218) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVeX0-0004Gt-QD for qemu-devel@nongnu.org; Wed, 11 Mar 2015 07:10:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVeWx-0002Z9-B9 for qemu-devel@nongnu.org; Wed, 11 Mar 2015 07:10:30 -0400 Received: from cantor2.suse.de ([195.135.220.15]:42830 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVeWx-0002Z5-4k for qemu-devel@nongnu.org; Wed, 11 Mar 2015 07:10:27 -0400 Message-ID: <550022A2.9040602@suse.de> Date: Wed, 11 Mar 2015 12:10:26 +0100 From: =?windows-1252?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <20150311075850-mutt-send-email-mst@redhat.com> In-Reply-To: <20150311075850-mutt-send-email-mst@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] exec: don't include hw/boards for linux-user List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" , qemu-devel@nongnu.org Cc: Peter Maydell , Paolo Bonzini Am 11.03.2015 um 07:58 schrieb Michael S. Tsirkin: > As noted by Andreas, hw/boards.h shouldn't be used outside softmmu code= . > Include it conditionally, and drop the (now unnecessary) ifdef guards i= n > hw/boards.h >=20 > Reported-by: Andreas F=E4rber > Cc: Peter Maydell > Signed-off-by: Michael S. Tsirkin > --- > include/hw/boards.h | 4 ---- > exec.c | 2 ++ > 2 files changed, 2 insertions(+), 4 deletions(-) >=20 > diff --git a/include/hw/boards.h b/include/hw/boards.h > index cd6deb0..f44d6f5 100644 > --- a/include/hw/boards.h > +++ b/include/hw/boards.h > @@ -3,8 +3,6 @@ > #ifndef HW_BOARDS_H > #define HW_BOARDS_H > =20 > -#if !defined(CONFIG_USER_ONLY) > - > #include "qemu/typedefs.h" > #include "sysemu/blockdev.h" > #include "sysemu/accel.h" > @@ -158,5 +156,3 @@ struct MachineState { > }; > =20 > #endif > - > -#endif > diff --git a/exec.c b/exec.c > index fe64009..bc37c7b 100644 > --- a/exec.c > +++ b/exec.c > @@ -26,7 +26,9 @@ > #include "cpu.h" > #include "tcg.h" > #include "hw/hw.h" > +#if !defined(CONFIG_USER_ONLY) > #include "hw/boards.h" > +#endif > #include "hw/qdev.h" > #include "qemu/osdep.h" > #include "sysemu/kvm.h" Reviewed-by: Andreas F=E4rber Thanks, Andreas --=20 SUSE Linux GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Felix Imend=F6rffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton; HRB 21284 (AG N=FCrnberg)