]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
hw/nmi: Fix the NMI() macro, based on INTERFACE_CHECK()
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Sat, 7 Dec 2019 09:48:23 +0000 (10:48 +0100)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 28 Feb 2020 19:57:19 +0000 (14:57 -0500)
There is no declaration of the 'NMI' type. INTERFACE_CHECK()
returns an abstract type (see commit aa1b35b975d8). The abstract
type corresponding to the TYPE_NMI interface is 'NMIState'.

Fixes: 9cb805fd267
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20191207094823.20707-1-philmd@redhat.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
include/hw/nmi.h

index a1e128724e667d6d77c032490067c5e03b3b75e7..fe37ce3ad83368e9f34b979f7fe23b121586c7b5 100644 (file)
@@ -31,7 +31,7 @@
 #define NMI_GET_CLASS(obj) \
     OBJECT_GET_CLASS(NMIClass, (obj), TYPE_NMI)
 #define NMI(obj) \
-     INTERFACE_CHECK(NMI, (obj), TYPE_NMI)
+     INTERFACE_CHECK(NMIState, (obj), TYPE_NMI)
 
 typedef struct NMIState NMIState;