diff options
author | Greg Kurz | 2020-09-14 14:34:52 +0200 |
---|---|---|
committer | David Gibson | 2020-10-09 01:15:06 +0200 |
commit | 2c82e8df4d6a99c024f3955fe6a6bf94ca59ab63 (patch) | |
tree | a97127110d9153e3d327d3392f61511cfddbf4a1 /fsdev | |
parent | spapr: Fix error leak in spapr_realize_vcpu() (diff) | |
download | qemu-2c82e8df4d6a99c024f3955fe6a6bf94ca59ab63.tar.gz qemu-2c82e8df4d6a99c024f3955fe6a6bf94ca59ab63.tar.xz qemu-2c82e8df4d6a99c024f3955fe6a6bf94ca59ab63.zip |
ppc: Add a return value to ppc_set_compat() and ppc_set_compat_all()
As recommended in "qapi/error.h", indicate success / failure with a
return value. Since ppc_set_compat() is called from a VMState handler,
let's make it an int so that it propagates any negative errno returned
by kvmppc_set_compat(). Do the same for ppc_set_compat_all() for
consistency, even if it isn't called in a context where a negative errno
is required on failure.
This will allow to simplify error handling in the callers.
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <20200914123505.612812-3-groug@kaod.org>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'fsdev')
0 files changed, 0 insertions, 0 deletions