qemu/target/s390x
Markus Armbruster 778a2dc592 qom: Use returned bool to check for failure, Coccinelle part
The previous commit enables conversion of

    foo(..., &err);
    if (err) {
        ...
    }

to

    if (!foo(..., errp)) {
        ...
    }

for QOM functions that now return true / false on success / error.
Coccinelle script:

    @@
    identifier fun = {
        object_apply_global_props, object_initialize_child_with_props,
        object_initialize_child_with_propsv, object_property_get,
        object_property_get_bool, object_property_parse, object_property_set,
        object_property_set_bool, object_property_set_int,
        object_property_set_link, object_property_set_qobject,
        object_property_set_str, object_property_set_uint, object_set_props,
        object_set_propv, user_creatable_add_dict,
        user_creatable_complete, user_creatable_del
    };
    expression list args, args2;
    typedef Error;
    Error *err;
    @@
    -    fun(args, &err, args2);
    -    if (err)
    +    if (!fun(args, &err, args2))
         {
             ...
         }

Fails to convert hw/arm/armsse.c, because Coccinelle gets confused by
ARMSSE being used both as typedef and function-like macro there.
Convert manually.

Line breaks tidied up manually.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20200707160613.848843-29-armbru@redhat.com>
2020-07-10 15:18:08 +02:00
..
arch_dump.c
cc_helper.c
cpu_features_def.h
cpu_features_def.inc.h s390x/cpumodel: Fix UI to CPU features pcc-cmac-{aes,eaes}-256 2020-05-15 07:07:58 +02:00
cpu_features.c
cpu_features.h
cpu_models.c qom: Use returned bool to check for failure, Coccinelle part 2020-07-10 15:18:08 +02:00
cpu_models.h
cpu-param.h
cpu-qom.h cpu: Use DeviceClass reset instead of a special CPUClass reset 2020-03-17 19:48:10 -04:00
cpu.c target/s390x: Restrict CpuClass::get_crash_info() to system-mode 2020-06-05 21:23:22 +02:00
cpu.h s390x: Add SIDA memory ops 2020-04-29 14:31:31 +02:00
crypto_helper.c
diag.c s390x: protvirt: Move diag 308 data over SIDA 2020-04-29 14:31:32 +02:00
excp_helper.c Let cpu_[physical]_memory() calls pass a boolean 'is_write' argument 2020-02-20 14:47:08 +01:00
fpu_helper.c softfloat: Name compare relation enum 2020-05-19 08:41:45 -07:00
gdbstub.c gdbstub: extend GByteArray to read register helpers 2020-03-17 17:38:38 +00:00
gen-features.c s390x: Add unpack facility feature to GA1 2020-04-29 14:31:32 +02:00
helper.c target/s390x/helper: Clean ifdef'ry 2020-06-05 17:13:11 +02:00
helper.h target/s390x: Use tcg_gen_gvec_rotl{i,s,v} 2020-06-02 08:42:37 -07:00
insn-data.def target/s390x: Fix SQXBR 2020-07-03 11:15:59 +02:00
insn-format.def
int_helper.c
internal.h target/s390x: Restrict system-mode declarations 2020-06-05 17:13:11 +02:00
interrupt.c
ioinst.c vfio-ccw: Add support for the schib region 2020-06-18 12:13:54 +02:00
kvm_s390x.h s390x: Add SIDA memory ops 2020-04-29 14:31:31 +02:00
kvm-stub.c s390x: protvirt: Support unpack facility 2020-04-29 14:30:54 +02:00
kvm.c s390x/kvm: help valgrind in several places 2020-06-05 17:13:11 +02:00
machine.c
Makefile.objs
mem_helper.c tcg: Search includes from the project root source directory 2020-01-15 15:13:10 -10:00
misc_helper.c
mmu_helper.c s390x: Add SIDA memory ops 2020-04-29 14:31:31 +02:00
s390-tod.h
sigp.c s390x: sigp: Fix sense running reporting 2020-01-27 12:13:10 +01:00
tcg_s390x.h
tcg-stub.c
trace-events
translate_vx.inc.c target/s390x: Use tcg_gen_gvec_rotl{i,s,v} 2020-06-02 08:42:37 -07:00
translate.c target/s390x/translate: Fix RNSBG instruction 2020-02-26 18:57:07 +01:00
vec_fpu_helper.c softfloat: Inline float64 compare specializations 2020-05-19 08:42:45 -07:00
vec_helper.c
vec_int_helper.c target/s390x: Use tcg_gen_gvec_rotl{i,s,v} 2020-06-02 08:42:37 -07:00
vec_string_helper.c
vec.h