@@ -73,9 +73,9 @@ void nmi_monitor_handle(int cpu_index, Error **errp)
}
}
-void inject_nmi(void)
+void inject_nmi(Error **errp)
{
- nmi_monitor_handle(0, NULL);
+ nmi_monitor_handle(0, errp);
}
static const TypeInfo nmi_info = {
@@ -143,7 +143,7 @@ void watchdog_perform_action(void)
case WDT_NMI:
qapi_event_send_watchdog(WATCHDOG_EXPIRATION_ACTION_INJECT_NMI,
&error_abort);
- inject_nmi();
+ inject_nmi(NULL);
break;
}
}
@@ -45,6 +45,6 @@ typedef struct NMIClass {
} NMIClass;
void nmi_monitor_handle(int cpu_index, Error **errp);
-void inject_nmi(void);
+void inject_nmi(Error **errp);
#endif /* NMI_H */
If caller has errp, set it appropriately in case of an error and pass it along. Signed-off-by: Bandan Das <bsd@redhat.com> --- hw/core/nmi.c | 4 ++-- hw/watchdog/watchdog.c | 2 +- include/hw/nmi.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)