===================================================================
@@ -57,7 +57,7 @@ struct nmiaction {
int __register_nmi_handler(unsigned int, struct nmiaction *);
-void unregister_nmi_handler(unsigned int, const char *);
+void unregister_nmi_handler(unsigned int type, const char *name);
void stop_nmi(void);
void restart_nmi(void);
===================================================================
@@ -47,15 +47,13 @@
#include <linux/genalloc.h>
#include <linux/pci.h>
#include <linux/aer.h>
+#include <linux/nmi.h>
#include <acpi/ghes.h>
#ifdef CONFIG_X86_MCE
#include <asm/mce.h>
#endif
#include <asm/tlbflush.h>
-#ifdef CONFIG_ACPI_APEI_NMI
-#include <asm/nmi.h>
-#endif
#include "apei-internal.h"
===================================================================
@@ -53,4 +53,11 @@ extern int proc_dowatchdog(struct ctl_ta
void __user *, size_t *, loff_t *);
#endif
+#ifdef CONFIG_ACPI_APEI_NMI
+#include <asm/nmi.h>
+#else
+#define register_nmi_handler(t, fn, fg, n, init...) do { } while(0)
+void unregister_nmi_handler(unsigned int type, const char *name) {}
+#endif /* CONFIG_ACPI_APEI_NMI */
+
#endif