qemu-patch-raspberry4/include
Alexander Graf 61c7bbd236 kvm: Fix enable_cap helpers on older gcc
Commit 40f1ee27aa introduced handy helpers for enable_cap calls on
vcpu and vm level. Unfortunately some older gcc versions (4.7.1, 4.6)
seem to choke on signedness detection in inline created variables:

target-ppc/kvm.c: In function 'kvmppc_booke_watchdog_enable':
target-ppc/kvm.c:1302:21: error: comparison of unsigned expression < 0 is always false [-Werror=type-limits]
target-ppc/kvm.c: In function 'kvmppc_set_papr':
target-ppc/kvm.c:1504:21: error: comparison of unsigned expression < 0 is always false [-Werror=type-limits]

However - thanks to Thomas Huth for the suggestion - we can just cast the
offending potentially 0 value to a signed type, making the comparison signed.

Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
2014-05-20 13:05:57 +02:00
..
block block: Fix open flags with BDRV_O_SNAPSHOT 2014-05-09 20:57:31 +02:00
disas disas: Implement disassembly output for A64 2014-02-08 14:50:48 +00:00
exec tcg/s390 updates 2014-05-15 18:56:08 +01:00
fpu softfloat: Introduce float32_to_uint64_round_to_zero 2014-04-08 11:20:00 +02:00
hw pci: add Error-propagating pci_add_capability2() 2014-05-08 14:19:59 -04:00
migration migration: expose xbzrle cache miss rate 2014-05-05 22:15:03 +02:00
monitor monitor: add Error-propagating monitor_handle_fd_param2() 2014-05-08 14:19:58 -04:00
net net: remove implicit peer from offload API 2014-02-25 14:31:05 +01:00
qapi qapi: Replace start_optional()/end_optional() by optional() 2014-05-15 14:00:45 -04:00
qemu machine: Replace QEMUMachine by MachineClass in accelerator configuration 2014-05-05 19:08:49 +02:00
qom cpu: Avoid QOM casts for CPU() 2014-03-31 19:28:38 +02:00
sysemu kvm: Fix enable_cap helpers on older gcc 2014-05-20 13:05:57 +02:00
ui input: add qemu_input_handler_deactivate 2014-05-16 08:30:12 +02:00
config.h janitor: move remaining public headers to include/ 2012-12-19 08:32:46 +01:00
elf.h linux-user/elfload.c: Support ARM HWCAP2 flags 2014-05-02 21:59:36 +03:00
glib-compat.h glib: fix g_poll early timeout on windows 2014-05-09 20:57:35 +02:00
qemu-common.h glib: move g_poll() replacement into glib-compat.h 2014-05-07 21:00:43 +04:00
qemu-io.h qemu-io: Fix warnings from static code analysis 2014-03-13 14:42:24 +01:00
trace.h build: some simplifications for "trace/Makefile.objs" 2013-01-12 18:42:51 +01:00