qemu-patch-raspberry4/include/hw/acpi
Markus Armbruster ec150c7e09 include: Make headers more self-contained
Back in 2016, we discussed[1] rules for headers, and these were
generally liked:

1. Have a carefully curated header that's included everywhere first.  We
   got that already thanks to Peter: osdep.h.

2. Headers should normally include everything they need beyond osdep.h.
   If exceptions are needed for some reason, they must be documented in
   the header.  If all that's needed from a header is typedefs, put
   those into qemu/typedefs.h instead of including the header.

3. Cyclic inclusion is forbidden.

This patch gets include/ closer to obeying 2.

It's actually extracted from my "[RFC] Baby steps towards saner
headers" series[2], which demonstrates a possible path towards
checking 2 automatically.  It passes the RFC test there.

[1] Message-ID: <87h9g8j57d.fsf@blackfin.pond.sub.org>
    https://lists.nongnu.org/archive/html/qemu-devel/2016-03/msg03345.html
[2] Message-Id: <20190711122827.18970-1-armbru@redhat.com>
    https://lists.nongnu.org/archive/html/qemu-devel/2019-07/msg02715.html

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20190812052359.30071-2-armbru@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
2019-08-16 13:31:51 +02:00
..
acpi-defs.h acpi: pci: use build_append_foo() API to construct MCFG 2019-05-29 18:00:57 -04:00
acpi.h hw/acpi: remove unused function acpi_table_add_builtin() 2019-03-06 10:22:38 +01:00
acpi_dev_interface.h qom: make interface types abstract 2018-12-11 15:45:22 -02:00
aml-build.h hw: acpi: Export and share the ARM RSDP build 2018-12-19 16:48:16 -05:00
bios-linker-loader.h vmgenid: replace x-write-pointer-available hack 2017-09-08 16:15:17 +03:00
cpu.h typo: apci->acpi 2019-01-30 10:16:58 +01:00
cpu_hotplug.h Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
ich9.h i386, acpi: check acpi_memory_hotplug capacity in pre_plug 2019-03-12 22:31:21 -04:00
ipmi.h hw: remove "qemu/osdep.h" from header files 2017-12-18 17:07:02 +03:00
memory_hotplug.h migration: Remove unneeded includes of migration/vmstate.h 2017-06-01 18:49:22 +02:00
pc-hotplug.h memhp: don't generate memory hotplug AML if it's not enabled/supported 2017-01-10 07:03:24 +02:00
pci.h include: Make headers more self-contained 2019-08-16 13:31:51 +02:00
pcihp.h pci/pcihp: perform unplug via the hotplug handler 2018-12-20 11:19:12 -05:00
piix4.h hw/i386/acpi: Add object_resolve_type_unambiguous to improve modularity 2019-05-17 15:19:24 +02:00
tco.h include: Make headers more self-contained 2019-08-16 13:31:51 +02:00
tpm.h acpi: build TPM Physical Presence interface 2019-01-17 21:10:57 -05:00
utils.h hw/acpi: extract acpi_add_rom_blob() 2019-06-16 16:16:52 -04:00
vmgenid.h vmgenid: replace x-write-pointer-available hack 2017-09-08 16:15:17 +03:00