qemu/hw/arm
Markus Armbruster da34e65cb4 include/qemu/osdep.h: Don't include qapi/error.h
Commit 57cb38b included qapi/error.h into qemu/osdep.h to get the
Error typedef.  Since then, we've moved to include qemu/osdep.h
everywhere.  Its file comment explains: "To avoid getting into
possible circular include dependencies, this file should not include
any other QEMU headers, with the exceptions of config-host.h,
compiler.h, os-posix.h and os-win32.h, all of which are doing a
similar job to this file and are under similar constraints."
qapi/error.h doesn't do a similar job, and it doesn't adhere to
similar constraints: it includes qapi-types.h.  That's in excess of
100KiB of crap most .c files don't actually need.

Add the typedef to qemu/typedefs.h, and include that instead of
qapi/error.h.  Include qapi/error.h in .c files that need it and don't
get it now.  Include qapi-types.h in qom/object.h for uint16List.

Update scripts/clean-includes accordingly.  Update it further to match
reality: replace config.h by config-target.h, add sysemu/os-posix.h,
sysemu/os-win32.h.  Update the list of includes in the qemu/osdep.h
comment quoted above similarly.

This reduces the number of objects depending on qapi/error.h from "all
of them" to less than a third.  Unfortunately, the number depending on
qapi-types.h shrinks only a little.  More work is needed for that one.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
[Fix compilation without the spice devel packages. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2016-03-22 22:20:15 +01:00
..
allwinner-a10.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
armv7m.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
ast2400.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
bcm2835_peripherals.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
bcm2836.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
boot.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
collie.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
cubieboard.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
digic_boards.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
digic.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
exynos4_boards.c machine: Use type_init() to register machine classes 2016-03-16 15:34:05 -03:00
exynos4210.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
fsl-imx25.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
fsl-imx31.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
gumstix.c machine: Use type_init() to register machine classes 2016-03-16 15:34:05 -03:00
highbank.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
imx25_pdk.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
integratorcp.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
kzm.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
mainstone.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
Makefile.objs hw/arm: Add palmetto-bmc machine 2016-03-16 17:42:18 +00:00
musicpal.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
netduino2.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
nseries.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
omap1.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
omap2.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
omap_sx1.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
palm.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
palmetto-bmc.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
pxa2xx_gpio.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
pxa2xx_pic.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
pxa2xx.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
raspi.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
realview.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
spitz.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
stellaris.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
stm32f205_soc.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
strongarm.c ssi: Move ssi.h into a separate directory 2016-01-21 14:15:03 +00:00
strongarm.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
sysbus-fdt.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
tosa.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
versatilepb.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
vexpress.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
virt-acpi-build.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
virt.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
xilinx_zynq.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
xlnx-ep108.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
xlnx-zynqmp.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
z2.c ssi: Move ssi.h into a separate directory 2016-01-21 14:15:03 +00:00