[PATCH 4/6] ARM: use BIT() and GENMASK() for fault status register fields
Russell King (Oracle)
rmk+kernel at armlinux.org.uk
Fri Feb 27 07:19:23 PST 2026
Modernise the fault status field definitions by using BIT() and
GENMASK().
Signed-off-by: Russell King (Oracle) <rmk+kernel at armlinux.org.uk>
---
arch/arm/mm/fault.h | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/arch/arm/mm/fault.h b/arch/arm/mm/fault.h
index e95f44757dc9..d2bdedaefe14 100644
--- a/arch/arm/mm/fault.h
+++ b/arch/arm/mm/fault.h
@@ -5,12 +5,12 @@
/*
* Fault status register encodings. We steal bit 31 for our own purposes.
*/
-#define FSR_LNX_PF (1 << 31)
-#define FSR_CM (1 << 13)
-#define FSR_WRITE (1 << 11)
-#define FSR_FS4 (1 << 10)
-#define FSR_FS3_0 (15)
-#define FSR_FS5_0 (0x3f)
+#define FSR_LNX_PF BIT(31)
+#define FSR_CM BIT(13)
+#define FSR_WRITE BIT(11)
+#define FSR_FS4 BIT(10)
+#define FSR_FS3_0 GENMASK(3, 0)
+#define FSR_FS5_0 GENMASK(5, 0)
#ifdef CONFIG_ARM_LPAE
#define FSR_FS_AEA 17
--
2.47.3
More information about the linux-arm-kernel
mailing list