qemu-patch-raspberry4/hw/audio
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
..
ac97.c audio: Clean up includes 2016-02-02 13:57:31 +01:00
adlib.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
cs4231.c audio: Clean up includes 2016-02-02 13:57:31 +01:00
cs4231a.c cs4231a: use IsaDma interface instead of global DMA_* functions 2016-02-03 11:28:58 -05:00
es1370.c ES1370: QOMify 2016-02-11 15:15:46 +03:00
fmopl.c audio: Clean up includes 2016-02-02 13:57:31 +01:00
fmopl.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
gus.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
gusemu.h all: Clean up includes 2016-02-23 12:43:05 +00:00
gusemu_hal.c audio: Clean up includes 2016-02-02 13:57:31 +01:00
gusemu_mixer.c audio: Clean up includes 2016-02-02 13:57:31 +01:00
gustate.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
hda-codec-common.h hda-codec: make mixemu selectable at runtime 2013-09-24 10:29:34 +02:00
hda-codec.c audio: Clean up includes 2016-02-02 13:57:31 +01:00
intel-hda-defs.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
intel-hda.c audio: Clean up includes 2016-02-02 13:57:31 +01:00
intel-hda.h intel-hda: Pass size to hda_codec_bus_init() 2013-08-30 20:14:38 +02:00
lm4549.c audio: Clean up includes 2016-02-02 13:57:31 +01:00
lm4549.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
Makefile.objs audio: replace audio card configuration with default-configs 2013-04-29 12:16:37 -05:00
marvell_88w8618.c audio: Clean up includes 2016-02-02 13:57:31 +01:00
milkymist-ac97.c audio: Clean up includes 2016-02-02 13:57:31 +01:00
pcspk.c audio: Clean up includes 2016-02-02 13:57:31 +01:00
pl041.c audio: Clean up includes 2016-02-02 13:57:31 +01:00
pl041.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
pl041.hx hw: move target-independent files to subdirectories 2013-04-08 18:13:12 +02:00
sb16.c sb16: use IsaDma interface instead of global DMA_* functions 2016-02-03 11:28:58 -05:00
wm8750.c audio: Clean up includes 2016-02-02 13:57:31 +01:00