From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVO3O-0005PC-4V for qemu-devel@nongnu.org; Tue, 10 Mar 2015 13:34:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVO3J-0006xk-Lo for qemu-devel@nongnu.org; Tue, 10 Mar 2015 13:34:50 -0400 Received: from cantor2.suse.de ([195.135.220.15]:52444 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVO3J-0006xS-GS for qemu-devel@nongnu.org; Tue, 10 Mar 2015 13:34:45 -0400 Message-ID: <54FF2B34.3050106@suse.de> Date: Tue, 10 Mar 2015 18:34:44 +0100 From: =?windows-1252?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <20150310183316-mutt-send-email-mst@redhat.com> In-Reply-To: <20150310183316-mutt-send-email-mst@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] hw/boards: make it safe to include for linux-user List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" , qemu-devel@nongnu.org Cc: Marcel Apfelbaum , Paolo Bonzini , Alexander Graf Am 10.03.2015 um 18:33 schrieb Michael S. Tsirkin: > Make it safe to include hw/boards.h in exec.c > for linux-user configurations. > We don't need any of its contents though. >=20 > Signed-off-by: Michael S. Tsirkin > --- >=20 > Already on my tree as Marcel's patches needed this. Why? Which patches? Andreas >=20 > include/hw/boards.h | 4 ++++ > 1 file changed, 4 insertions(+) >=20 > diff --git a/include/hw/boards.h b/include/hw/boards.h > index 1f21bdf..0bf00f7 100644 > --- a/include/hw/boards.h > +++ b/include/hw/boards.h > @@ -3,6 +3,8 @@ > #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" > @@ -154,3 +156,5 @@ struct MachineState { > }; > =20 > #endif > + > +#endif >=20 --=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)