x86/pkeys: Remove __arch_set_user_pkey_access() declaration
PATCH 1/1 x86/pkeys: Remove __arch_set_user_pkey_access() declaration
From: Ira Weiny <[email protected]>
In the x86 code __arch_set_user_pkey_access() is not used and is not defined.
Remove the dead declaration.
To: Dave Hansen <[email protected]>
Signed-off-by Ira Weiny <[email protected]>
--- arch/x86/include/asm/pkeys.h | 5 ----- 1 file changed, 5 deletions(-)
arch/x86/include/asm/pkeys.h +0 -5
@@ -41,9 +41,6 @@ static inline int arch_override_mprotect_pkey(struct vm_area_struct *vma,return __arch_override_mprotect_pkey (vma, prot, pkey); } -extern int __arch_set_user_pkey_access (struct task_struct *tsk,int pkey, -unsigned long init_val); -#define ARCH_VM_PKEY_FLAGS (VM_PKEY_BIT0 | VM_PKEY_BIT1 | VM_PKEY_BIT2 | VM_PKEY_BIT3)#define mm_pkey_allocation_map (mm) (mm->context.pkey_allocation_map)
@@ -120,8 +117,6 @@ int mm_pkey_free(struct mm_struct *mm, int pkey)extern int arch_set_user_pkey_access (struct task_struct *tsk,int pkey,unsigned long init_val); -extern int __arch_set_user_pkey_access (struct task_struct *tsk,int pkey, -unsigned long init_val);static inline int vma_pkey (struct vm_area_struct *vma) {
Signature · 1 line
2.35.1