[PATCH 4/5] s390: fault: Convert to VM_FAULT_ARCH_* codes
From: Palmer Dabbelt
Date: Fri Dec 02 2022 - 22:06:03 EST
These conflict with VM_FAULT_HINDEX_MASK, so move to some designated
arch-specific values.
Signed-off-by: Palmer Dabbelt <palmer@xxxxxxxxxxxx>
---
arch/s390/mm/fault.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/arch/s390/mm/fault.c b/arch/s390/mm/fault.c
index 9649d9382e0a..464a74e52465 100644
--- a/arch/s390/mm/fault.c
+++ b/arch/s390/mm/fault.c
@@ -46,11 +46,11 @@
#define __SUBCODE_MASK 0x0600
#define __PF_RES_FIELD 0x8000000000000000ULL
-#define VM_FAULT_BADCONTEXT ((__force vm_fault_t) 0x010000)
-#define VM_FAULT_BADMAP ((__force vm_fault_t) 0x020000)
-#define VM_FAULT_BADACCESS ((__force vm_fault_t) 0x040000)
-#define VM_FAULT_SIGNAL ((__force vm_fault_t) 0x080000)
-#define VM_FAULT_PFAULT ((__force vm_fault_t) 0x100000)
+#define VM_FAULT_BADCONTEXT VM_FAULT_ARCH_0
+#define VM_FAULT_BADMAP VM_FAULT_ARCH_1
+#define VM_FAULT_BADACCESS VM_FAULT_ARCH_2
+#define VM_FAULT_SIGNAL VM_FAULT_ARCH_3
+#define VM_FAULT_PFAULT VM_FAULT_ARCH_4
enum fault_type {
KERNEL_FAULT,
--
2.38.1