diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-11-20 11:30:34 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-01-05 16:20:15 +0100 |
commit | ae076b6c39bfd2027e35ca5be922dc8f1b18b901 (patch) | |
tree | 32bd3ed9ff38db713bd9d5656065e22be6560fbc /include/exec | |
parent | b9159451d3411bfef528f431c98527c172cd46e8 (diff) | |
download | qemu-ae076b6c39bfd2027e35ca5be922dc8f1b18b901.zip qemu-ae076b6c39bfd2027e35ca5be922dc8f1b18b901.tar.gz qemu-ae076b6c39bfd2027e35ca5be922dc8f1b18b901.tar.bz2 |
memory: Have memory_region_init_rom_device_nomigrate() return a boolean
Following the example documented since commit e3fe3988d7
("error: Document Error API usage rules"), have
memory_region_init_rom_device_nomigrate() return a boolean
indicating whether an error is set or not.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-9-philmd@linaro.org>
Diffstat (limited to 'include/exec')
-rw-r--r-- | include/exec/memory.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/exec/memory.h b/include/exec/memory.h index 9f54bc4..6d7b49b 100644 --- a/include/exec/memory.h +++ b/include/exec/memory.h @@ -1523,8 +1523,10 @@ bool memory_region_init_rom_nomigrate(MemoryRegion *mr, * must be unique within any device * @size: size of the region. * @errp: pointer to Error*, to store an error if it happens. + * + * Return: true on success, else false setting @errp with error. */ -void memory_region_init_rom_device_nomigrate(MemoryRegion *mr, +bool memory_region_init_rom_device_nomigrate(MemoryRegion *mr, Object *owner, const MemoryRegionOps *ops, void *opaque, |