mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 21:15:53 +02:00
selftests/mm: Define PKEY_UNRESTRICTED for pkey_sighandler_tests
Commit6e182dc9f2("selftests/mm: Use generic pkey register manipulation") makes use of PKEY_UNRESTRICTED in pkey_sighandler_tests. The macro has been proposed for addition to uapi headers [1], but the patch hasn't landed yet. Define PKEY_UNRESTRICTED in pkey-helpers.h for the time being to fix the build. [1] https://lore.kernel.org/all/20241028090715.509527-2-yury.khrustalev@arm.com/ Fixes:6e182dc9f2("selftests/mm: Use generic pkey register manipulation") Reported-by: Aishwarya TCV <aishwarya.tcv@arm.com> Signed-off-by: Kevin Brodsky <kevin.brodsky@arm.com> Link: https://lore.kernel.org/r/20241107131640.650703-1-kevin.brodsky@arm.com Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
This commit is contained in:
parent
49f59573e9
commit
db64dfffca
|
|
@ -112,6 +112,13 @@ void record_pkey_malloc(void *ptr, long size, int prot);
|
|||
#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_bits
|
||||
static inline u64 set_pkey_bits(u64 reg, int pkey, u64 flags)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user