hw/nmi: Fix the NMI() macro, based on INTERFACE_CHECK()
PATCH 1/1 hw/nmi: Fix the NMI() macro, based on INTERFACE_CHECK()
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é <[email protected]>
--- include/hw/nmi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/hw/nmi.h +1 -1
@@ -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 ;
Signature · 1 line
2.21.0
Quoted 7 lines · Philippe Mathieu-Daudé
There is no declaration of the 'NMI' type.
INTERFACE_CHECK()returns an abstract type (see commitaa1b35b975d8). The abstract type corresponding to theTYPE_NMIinterface is 'NMIState'.Fixes 9cb805fd267Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
Reviewed-by Gavin Shan <[email protected]>
Quoted 17 lines
include/hw/nmi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/hw/nmi.h +1
-1@@ -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 ;
Eduardo Habkost
AppliedQuoted 10 lines · Gavin Shan
Quoted 7 lines · Philippe Mathieu-Daudé
There is no declaration of the 'NMI' type.
INTERFACE_CHECK()returns an abstract type (see commitaa1b35b975d8). The abstract type corresponding to theTYPE_NMIinterface is 'NMIState'.Fixes 9cb805fd267Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
Reviewed-by Gavin Shan <[email protected]>
Queued, thanks!
Signature · 1 line
Eduardo