s390/mm: define private VM_FAULT_* reasons from top bits

The current definition already collapse with the generic definition of
vm_fault_reason.  Move the private definitions to allocate bits from the
top of uint so they won't collapse anymore.

Signed-off-by: Peter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/r/20230205231704.909536-4-peterx@redhat.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
This commit is contained in:
Peter Xu 2023-02-05 18:17:04 -05:00 committed by Heiko Carstens
parent ac56c666f8
commit d939474b3d
1 changed files with 9 additions and 5 deletions

View File

@ -46,11 +46,15 @@
#define __SUBCODE_MASK 0x0600 #define __SUBCODE_MASK 0x0600
#define __PF_RES_FIELD 0x8000000000000000ULL #define __PF_RES_FIELD 0x8000000000000000ULL
#define VM_FAULT_BADCONTEXT ((__force vm_fault_t) 0x010000) /*
#define VM_FAULT_BADMAP ((__force vm_fault_t) 0x020000) * Allocate private vm_fault_reason from top. Please make sure it won't
#define VM_FAULT_BADACCESS ((__force vm_fault_t) 0x040000) * collide with vm_fault_reason.
#define VM_FAULT_SIGNAL ((__force vm_fault_t) 0x080000) */
#define VM_FAULT_PFAULT ((__force vm_fault_t) 0x100000) #define VM_FAULT_BADCONTEXT ((__force vm_fault_t)0x80000000)
#define VM_FAULT_BADMAP ((__force vm_fault_t)0x40000000)
#define VM_FAULT_BADACCESS ((__force vm_fault_t)0x20000000)
#define VM_FAULT_SIGNAL ((__force vm_fault_t)0x10000000)
#define VM_FAULT_PFAULT ((__force vm_fault_t)0x8000000)
enum fault_type { enum fault_type {
KERNEL_FAULT, KERNEL_FAULT,