selftests-mm-remove-the-local-pkey_unrestricted-fallback.patch removed from -mm tree
The quilt patch titled
Subject: selftests/mm: remove the local PKEY_UNRESTRICTED fallback
has been removed from the -mm tree. Its filename was
selftests-mm-remove-the-local-pkey_unrestricted-fallback.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Hemanth Selam <[email protected]>
Subject: selftests/mm: remove the local PKEY_UNRESTRICTED fallback
Date: Tue, 25 Aug 2026 21:47:15 +0530
pkey-helpers.h defines PKEY_UNRESTRICTED itself when the macro is not already known, a stopgap from when the generic definition was still under review. It has been merged since, commit 6d61527d931b ("mm/pkey: Add PKEY_UNRESTRICTED macro"), so the guard is never taken and the FIXME can be honoured.
The definition comes from tools/include/uapi/asm-generic/mman-common.h via TOOLS_INCLUDES, which commit e076eaca5906 ("selftests: break the dependency upon local header files") added so that the mm selftests build without "make headers". It is reached through the <asm-generic/mman.h> that the system <asm/mman.h> includes. Building the pkey tests with KHDR_INCLUDES pointing at an empty directory confirms that; emptying TOOLS_INCLUDES as well is what makes the macro go missing.
No functional change intended.
---
tools/testing/selftests/mm/pkey-helpers.h | 7 ------- 1 file changed, 7 deletions(-)
tools/testing/selftests/mm/pkey-helpers.h renamed from tools/testing/selftests/mm/pkey-helpers.h~selftests-mm-remove-the-local-pkey_unrestricted-fallback +0 -7
@@ -114,13 +114,6 @@ void record_pkey_malloc(void *ptr, long#define PKEY_MASK (PKEY_DISABLE_ACCESS | PKEY_DISABLE_WRITE)#endif -/* -* FIXME: Remove once the generic PKEY_UNRESTRICTED definition is merged. -*/ -#ifndef PKEY_UNRESTRICTED -#define PKEY_UNRESTRICTED 0x0 -#endif -#ifndef set_pkey_bitsstatic inline u64 set_pkey_bits (u64 reg,int pkey,u64 flags) {
_
Patches currently in -mm which might be from [email protected] are
scripts-spellingtxt-keep-british-spelling-for-initalise.patch