]> git.proxmox.com Git - mirror_qemu.git/commit
hw/irq: Declare QOM macros using OBJECT_DECLARE_SIMPLE_TYPE()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 13 Jan 2023 20:01:36 +0000 (21:01 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 27 Feb 2023 13:27:05 +0000 (13:27 +0000)
commit4703f6c2f7a982ccc6e970ad3010bfe1203a828d
tree78263521d561dbe654f8b0f21adf11b10231fac3
parentdc892d1e4c8d3682d624725d7cfeee90f35d6eff
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>
hw/core/irq.c