Skip to content

Commit 9ab515b

Browse files
brooniectmarinas
authored andcommitted
mm: Define VM_HIGH_ARCH_6
The addition of protection keys means that on arm64 we now use all of the currently defined VM_HIGH_ARCH_x bits. In order to allow us to allocate a new flag for GCS pages define VM_HIGH_ARCH_6. Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent bcc9d04 commit 9ab515b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/linux/mm.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,12 +329,14 @@ extern unsigned int kobjsize(const void *objp);
329329
#define VM_HIGH_ARCH_BIT_3 35 /* bit only usable on 64-bit architectures */
330330
#define VM_HIGH_ARCH_BIT_4 36 /* bit only usable on 64-bit architectures */
331331
#define VM_HIGH_ARCH_BIT_5 37 /* bit only usable on 64-bit architectures */
332+
#define VM_HIGH_ARCH_BIT_6 38 /* bit only usable on 64-bit architectures */
332333
#define VM_HIGH_ARCH_0 BIT(VM_HIGH_ARCH_BIT_0)
333334
#define VM_HIGH_ARCH_1 BIT(VM_HIGH_ARCH_BIT_1)
334335
#define VM_HIGH_ARCH_2 BIT(VM_HIGH_ARCH_BIT_2)
335336
#define VM_HIGH_ARCH_3 BIT(VM_HIGH_ARCH_BIT_3)
336337
#define VM_HIGH_ARCH_4 BIT(VM_HIGH_ARCH_BIT_4)
337338
#define VM_HIGH_ARCH_5 BIT(VM_HIGH_ARCH_BIT_5)
339+
#define VM_HIGH_ARCH_6 BIT(VM_HIGH_ARCH_BIT_6)
338340
#endif /* CONFIG_ARCH_USES_HIGH_VMA_FLAGS */
339341

340342
#ifdef CONFIG_ARCH_HAS_PKEYS

0 commit comments

Comments
 (0)