[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221203030356.3917-4-palmer@rivosinc.com>
Date: Fri, 2 Dec 2022 19:03:54 -0800
From: Palmer Dabbelt <palmer@...osinc.com>
To: linux-kernel@...r.kernel.org, linux-riscv@...ts.infradead.org,
linux-s390@...r.kernel.org, linux-arm-kernel@...ts.infradead.org
Cc: Palmer Dabbelt <palmer@...osinc.com>
Subject: [PATCH 3/5] arm: fault: Convert to VM_FAULT_ARCH_* codes
These conflict with VM_FAULT_HINDEX_MASK, so move to some designated
arch-specific values.
Signed-off-by: Palmer Dabbelt <palmer@...osinc.com>
---
arch/arm/mm/fault.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c
index 46cccd6bf705..7063b875b05f 100644
--- a/arch/arm/mm/fault.c
+++ b/arch/arm/mm/fault.c
@@ -201,8 +201,8 @@ void do_bad_area(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
}
#ifdef CONFIG_MMU
-#define VM_FAULT_BADMAP ((__force vm_fault_t)0x010000)
-#define VM_FAULT_BADACCESS ((__force vm_fault_t)0x020000)
+#define VM_FAULT_BADMAP VM_FAULT_ARCH_0
+#define VM_FAULT_BADACCESS VM_FAULT_ARCH_1
static inline bool is_permission_fault(unsigned int fsr)
{
--
2.38.1
Powered by blists - more mailing lists