qemu-irix/include/hw
Daniel P. Berrange 8afc224ffe virtio-gpu: fix missing log.h include file
The virtio-gpu.h file defines a macro VIRTIO_GPU_FILL_CMD
which includes a call to qemu_log_mask, but does not
include qemu/log.h. In a default configure, it is lucky
and gets qemu/log.h indirectly due to the 'log' trace
backend being enabled. If that trace backend is disabled
though, eg

 ./configure --enable-trace-backends=nop

Then the build will fail:

In file included from /home/berrange/src/virt/qemu/hw/display/virtio-gpu-3d.c:19:0:
/home/berrange/src/virt/qemu/hw/display/virtio-gpu-3d.c: In function ‘virgl_cmd_create_resource_2d’:
/home/berrange/src/virt/qemu/include/hw/virtio/virtio-gpu.h:138:13: error: implicit declaration of function ‘qemu_log_mask’ [-Werror=implicit-function-declaration]
             qemu_log_mask(LOG_GUEST_ERROR,                              \
             ^
/home/berrange/src/virt/qemu/hw/display/virtio-gpu-3d.c:34:5: note: in expansion of macro ‘VIRTIO_GPU_FILL_CMD’
     VIRTIO_GPU_FILL_CMD(c2d);
     ^~~~~~~~~~~~~~~~~~~
/home/berrange/src/virt/qemu/hw/display/virtio-gpu-3d.c:34:5: error: nested extern declaration of ‘qemu_log_mask’ [-Werror=nested-externs]
In file included from /home/berrange/src/virt/qemu/hw/display/virtio-gpu-3d.c:19:0:
/home/berrange/src/virt/qemu/include/hw/virtio/virtio-gpu.h:138:27: error: ‘LOG_GUEST_ERROR’ undeclared (first use in this function)
             qemu_log_mask(LOG_GUEST_ERROR,                              \

[snip many more errors]

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 1470648700-3474-1-git-send-email-berrange@redhat.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2016-08-16 11:21:31 +01:00
..
acpi acpi: add DMAR scope definition for root IOAPIC 2016-07-20 19:30:27 +03:00
arm
audio
block
char
cpu
cris
display
dma
gpio
i2c
i386 x86: ioapic: add support for explicit EOI 2016-08-03 18:44:57 +02:00
ide
input
intc
ipack
ipmi
isa
kvm
lm32
m68k
mem
mips
misc
net
nvram
pci pcie: fix link active status bit migration 2016-07-29 00:07:08 +03:00
pci-host acpi: add DMAR scope definition for root IOAPIC 2016-07-20 19:30:27 +03:00
ppc ppc: parse cpu features once 2016-08-13 17:32:58 +10:00
s390x
scsi
sd
sh4
smbios
sparc
ssi
timer
tricore
unicore32
usb
vfio
virtio virtio-gpu: fix missing log.h include file 2016-08-16 11:21:31 +01:00
watchdog
xen xen: handle inbound migration of VMs without ioreq server pages 2016-08-12 16:38:30 -07:00
boards.h
bt.h
compat.h hw/virtio-pci: fix virtio behaviour 2016-07-29 00:07:10 +03:00
devices.h
elf_ops.h
empty_slot.h
fw-path-provider.h
hotplug.h
hw.h
ide.h
irq.h
loader.h
nmi.h
pcmcia.h
platform-bus.h
ptimer.h
qdev-core.h qdev: ignore GlobalProperty.errp for hotplugged devices 2016-07-27 11:25:06 -03:00
qdev-dma.h
qdev-properties.h
qdev.h
register.h
stream.h
sysbus.h
usb.h