qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 22/28] Include hw/boards.h a bit less


From: Markus Armbruster
Subject: Re: [Qemu-devel] [PATCH 22/28] Include hw/boards.h a bit less
Date: Tue, 30 Jul 2019 13:03:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)

Eduardo Habkost <address@hidden> writes:

> On Fri, Jul 26, 2019 at 02:05:36PM +0200, Markus Armbruster wrote:
>> hw/boards.h pulls in almost 60 headers.  The less we include it into
>> headers, the better.  As a first step, drop superfluous inclusions,
>> and downgrade some more to what's actually needed.  Gets rid of just
>> one inclusion into a header.
>> 
>> Cc: Eduardo Habkost <address@hidden>
>> Cc: Marcel Apfelbaum <address@hidden>
>> Signed-off-by: Markus Armbruster <address@hidden>
> [...]
>> diff --git a/hw/core/machine.c b/hw/core/machine.c
>> index c58a8e594e..2c9c93983a 100644
>> --- a/hw/core/machine.c
>> +++ b/hw/core/machine.c
>> @@ -15,7 +15,6 @@
>>  #include "qapi/qmp/qerror.h"
>>  #include "sysemu/replay.h"
>>  #include "qemu/units.h"
>> -#include "hw/boards.h"
>>  #include "qapi/error.h"
>>  #include "qapi/qapi-visit-common.h"
>>  #include "qapi/visitor.h"
>
> This doesn't look right.  hw/core/machine.c contains the
> implementation of most functions declared at hw/boards.h, and
> surely requires struct MachineClass and struct MachineState to be
> defined.

Editing accident, reverted in the next patch.  Harmless, because we
still get it indirectly.  Will drop the hunk from this patch.  Thanks!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]