diff options
author | 2023-01-13 21:01:36 +0100 | |
---|---|---|
committer | 2023-02-27 13:27:05 +0000 | |
commit | 4703f6c2f7a982ccc6e970ad3010bfe1203a828d (patch) | |
tree | 78263521d561dbe654f8b0f21adf11b10231fac3 /scripts/coverage/compare_gcov_json.py | |
parent | iothread: Remove unused IOThreadClass / IOTHREAD_CLASS (diff) | |
download | qemu-4703f6c2f7a982ccc6e970ad3010bfe1203a828d.tar.xz qemu-4703f6c2f7a982ccc6e970ad3010bfe1203a828d.zip |
hw/irq: Declare QOM macros using OBJECT_DECLARE_SIMPLE_TYPE()
QOM *DECLARE* macros expect a typedef as first argument,
not a structure. Replace 'struct IRQState' by 'IRQState'
to avoid when modifying the macros:
../hw/core/irq.c:29:1: error: declaration of anonymous struct must be a definition
DECLARE_INSTANCE_CHECKER(struct IRQState, IRQ,
^
Use OBJECT_DECLARE_SIMPLE_TYPE instead of DECLARE_INSTANCE_CHECKER.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20230113200138.52869-3-philmd@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'scripts/coverage/compare_gcov_json.py')
0 files changed, 0 insertions, 0 deletions