summaryrefslogtreecommitdiff
path: root/arch/s390/include/asm/pfault.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/include/asm/pfault.h')
-rw-r--r--arch/s390/include/asm/pfault.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/s390/include/asm/pfault.h b/arch/s390/include/asm/pfault.h
index beabeebf2859..a1bee4a1e470 100644
--- a/arch/s390/include/asm/pfault.h
+++ b/arch/s390/include/asm/pfault.h
@@ -5,6 +5,8 @@
#ifndef _ASM_S390_PFAULT_H
#define _ASM_S390_PFAULT_H
+#include <linux/errno.h>
+
int __pfault_init(void);
void __pfault_fini(void);
@@ -12,7 +14,7 @@ static inline int pfault_init(void)
{
if (IS_ENABLED(CONFIG_PFAULT))
return __pfault_init();
- return -1;
+ return -EOPNOTSUPP;
}
static inline void pfault_fini(void)