diff options
author | Yury Khrustalev <yury.khrustalev@arm.com> | 2025-01-13 17:06:19 +0000 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2025-02-17 18:16:36 +0000 |
commit | 00894c3fc91791c742c7724de6b8db1d1e383c16 (patch) | |
tree | f81fe7e48b80c022e39357b136d985399226a8aa /tools/testing/selftests/powerpc/include/pkeys.h | |
parent | 3809cefe93f6ae7aa2dd0d466d07500f8d7fe461 (diff) |
selftests/powerpc: Use PKEY_UNRESTRICTED macro
Replace literal 0 with macro PKEY_UNRESTRICTED where pkey_*() functions
are used in mm selftests for memory protection keys for ppc target.
Signed-off-by: Yury Khrustalev <yury.khrustalev@arm.com>
Suggested-by: Kevin Brodsky <kevin.brodsky@arm.com>
Reviewed-by: Kevin Brodsky <kevin.brodsky@arm.com>
Link: https://lore.kernel.org/r/20250113170619.484698-4-yury.khrustalev@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'tools/testing/selftests/powerpc/include/pkeys.h')
-rw-r--r-- | tools/testing/selftests/powerpc/include/pkeys.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/powerpc/include/pkeys.h b/tools/testing/selftests/powerpc/include/pkeys.h index 3a0129467de6..c6d4063dd4f6 100644 --- a/tools/testing/selftests/powerpc/include/pkeys.h +++ b/tools/testing/selftests/powerpc/include/pkeys.h @@ -93,7 +93,7 @@ int pkeys_unsupported(void) SKIP_IF(!hash_mmu); /* Check if the system call is supported */ - pkey = sys_pkey_alloc(0, 0); + pkey = sys_pkey_alloc(0, PKEY_UNRESTRICTED); SKIP_IF(pkey < 0); sys_pkey_free(pkey); |