diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pkeys.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/linux/pkeys.h b/include/linux/pkeys.h index 1d405a2..0030b40 100644 --- a/include/linux/pkeys.h +++ b/include/linux/pkeys.h @@ -18,16 +18,4 @@ #define PKEY_DEDICATED_EXECUTE_ONLY 0 #endif /* ! CONFIG_ARCH_HAS_PKEYS */ -/* - * This is called from mprotect_pkey(). - * - * Returns true if the protection keys is valid. - */ -static inline bool validate_pkey(int pkey) -{ - if (pkey < 0) - return false; - return (pkey < arch_max_pkey()); -} - #endif /* _LINUX_PKEYS_H */ |