qemu/hw
Markus Armbruster 15280c360e qdict qlist: Make most helper macros functions
The macro expansions of qdict_put_TYPE() and qlist_append_TYPE() need
qbool.h, qnull.h, qnum.h and qstring.h to compile.  We include qnull.h
and qnum.h in the headers, but not qbool.h and qstring.h.  Works,
because we include those wherever the macros get used.

Open-coding these helpers is of dubious value.  Turn them into
functions and drop the includes from the headers.

This cleanup makes the number of objects depending on qapi/qmp/qnum.h
from 4551 (out of 4743) to 46 in my "build everything" tree.  For
qapi/qmp/qnull.h, the number drops from 4552 to 21.

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20180201111846.21846-10-armbru@redhat.com>
2018-02-09 13:52:15 +01:00
..
9pfs Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
acpi Include qmp-commands.h exactly where needed 2018-02-09 13:52:10 +01:00
adc Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
alpha Merge remote-tracking branch 'origin/master' into HEAD 2018-01-11 22:03:50 +02:00
arm hw/arm: Replace fprintf(stderr, "*\n" with error_report() 2018-02-06 18:26:42 +01:00
audio hw/audio/sb16.c: change dolog() to qemu_log_mask() 2018-02-02 08:19:47 +01:00
block Clean up includes 2018-02-09 05:05:11 +01:00
bt hw/bt: Replace fprintf(stderr, "*\n" with error_report() 2018-01-22 09:51:00 +01:00
char Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
core Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
cpu hw: use "qemu/osdep.h" as first #include in source files 2017-12-18 17:07:02 +03:00
cris cris: use generic cpu_model parsing 2017-10-27 16:03:54 +02:00
display Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
dma hw/dma: Replace fprintf(stderr, "*\n" with error_report() 2018-02-06 18:29:09 +01:00
gpio Replace all occurances of __FUNCTION__ with __func__ 2018-01-22 09:46:18 +01:00
hppa hw/hppa: Use qemu_log_mask instead of fprintf to stderr 2018-02-04 14:11:03 -08:00
i2c Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
i386 qdict qlist: Make most helper macros functions 2018-02-09 13:52:15 +01:00
ide Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
input qdev: use device_class_set_parent_realize/unrealize/reset() 2018-02-05 13:54:38 +01:00
intc Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
ipack pci: Add INTERFACE_CONVENTIONAL_PCI_DEVICE to Conventional PCI devices 2017-10-15 05:54:43 +03:00
ipmi Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
isa hw/isa: Replace fprintf(stderr, "*\n" with error_report() 2018-01-22 09:51:00 +01:00
lm32 hw/lm32: Replace fprintf(stderr, "*\n" with error_report() 2018-02-06 18:29:26 +01:00
m68k m68k: mcf5208: use generic cpu_model parsing 2017-10-27 16:03:54 +02:00
mem nvdimm: add 'unarmed' option 2018-01-19 11:18:51 -02:00
microblaze xlnx-zynqmp-pmu: Connect the IPI device to the PMU 2018-01-26 11:09:09 +01:00
mips Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
misc Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
moxie hw/moxie: Replace fprintf(stderr, "*\n" with error_report() 2018-02-06 18:29:26 +01:00
net Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
nios2 Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
nvram Clean up includes 2018-02-09 05:05:11 +01:00
openrisc hw/openrisc: Replace fprintf(stderr, "*\n" with error_report() 2018-02-06 18:29:26 +01:00
pci Eliminate qapi/qmp/types.h 2018-02-09 13:52:15 +01:00
pci-bridge Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
pci-host Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
pcmcia
ppc qdict qlist: Make most helper macros functions 2018-02-09 13:52:15 +01:00
s390x Include qmp-commands.h exactly where needed 2018-02-09 13:52:10 +01:00
scsi Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
sd Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
sh4 pci: Rename root bus initialization functions for clarity 2017-12-05 19:13:45 +02:00
smbios Include qmp-commands.h exactly where needed 2018-02-09 13:52:10 +01:00
sparc hw/sparc*: Replace fprintf(stderr, "*\n" with error_report() 2018-02-06 18:29:46 +01:00
sparc64 Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
ssi Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
timer Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
tpm Clean up includes 2018-02-09 05:05:11 +01:00
tricore tricore: use generic cpu_model parsing 2017-10-27 16:04:27 +02:00
unicore32 hw/unicore32: restrict hw addr defines to source file 2017-12-18 17:07:02 +03:00
usb Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
vfio * socket option parsing fix (Daniel) 2018-02-07 20:40:36 +00:00
virtio Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
watchdog Eliminate qapi/qmp/types.h 2018-02-09 13:52:15 +01:00
xen Include qmp-commands.h exactly where needed 2018-02-09 13:52:10 +01:00
xenpv hw/xen*: Replace fprintf(stderr, "*\n" with error_report() 2018-02-06 18:29:46 +01:00
xtensa Clean up includes 2018-02-09 05:05:11 +01:00
Makefile.objs 9pfs: fix dependencies 2017-08-30 18:23:25 +02:00