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: Eduardo Habkost
Subject: Re: [Qemu-devel] [PATCH 22/28] Include hw/boards.h a bit less
Date: Mon, 29 Jul 2019 17:17:59 -0300

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>
> ---

The following files use the MACHINE macro and require
hw/boards.h, but are touched by this patch:

hw/acpi/cpu.c:    MachineState *machine = MACHINE(qdev_get_machine());
hw/acpi/memory_hotplug.c:    MachineState *machine = 
MACHINE(qdev_get_machine());
hw/i386/intel_iommu.c:    MachineState *ms = MACHINE(qdev_get_machine());
hw/i386/x86-iommu.c:    MachineState *ms = MACHINE(qdev_get_machine());
hw/ppc/spapr_rtas.c:    MachineState *ms = MACHINE(qdev_get_machine());
hw/s390x/s390-stattrib-kvm.c:    MachineState *machine = 
MACHINE(qdev_get_machine());
hw/s390x/s390-stattrib-kvm.c:    MachineState *machine = 
MACHINE(qdev_get_machine());

Maybe there are other files touched by this patch that require
struct MachineClass or struct MachineState contents to be
defined, but this is a bit trickier to verify.

-- 
Eduardo



reply via email to

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