memory: Have memory_region_init_rom_nomigrate() handler return a boolean
commit197faa7006313407ade82de8bc49d52da610da46
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 20 Nov 2023 10:27:11 +0000 (20 11:27 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 5 Jan 2024 15:20:15 +0000 (5 16:20 +0100)
tree64c0ae5e82404f693fa1a2283d9700beee20f69b
parent62c19b72c7fefb5fcd13ed4e2c833d2f99458193
memory: Have memory_region_init_rom_nomigrate() handler return a boolean

Following the example documented since commit e3fe3988d7 ("error:
Document Error API usage rules"), have memory_region_init_rom_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-4-philmd@linaro.org>
[PMD: Only update 'readonly' field on success (Manos Pitsidianakis)]
Message-Id: <af352e7d-3346-4705-be77-6eed86858d18@linaro.org>
include/exec/memory.h
system/memory.c