Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/pkeys: Remove __arch_set_user_pkey_access() declaration

In the x86 code __arch_set_user_pkey_access() is not used and is not
defined.

Remove the dead declaration.

Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lkml.kernel.org/r/20220331180655.2946086-1-ira.weiny@intel.com

authored by

Ira Weiny and committed by
Dave Hansen
5a089308 70431c63

-6
-6
arch/x86/include/asm/pkeys.h
··· 41 41 return __arch_override_mprotect_pkey(vma, prot, pkey); 42 42 } 43 43 44 - extern int __arch_set_user_pkey_access(struct task_struct *tsk, int pkey, 45 - unsigned long init_val); 46 - 47 44 #define ARCH_VM_PKEY_FLAGS (VM_PKEY_BIT0 | VM_PKEY_BIT1 | VM_PKEY_BIT2 | VM_PKEY_BIT3) 48 45 49 46 #define mm_pkey_allocation_map(mm) (mm->context.pkey_allocation_map) ··· 114 117 115 118 return 0; 116 119 } 117 - 118 - extern int __arch_set_user_pkey_access(struct task_struct *tsk, int pkey, 119 - unsigned long init_val); 120 120 121 121 static inline int vma_pkey(struct vm_area_struct *vma) 122 122 {