summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/pkeys.h
diff options
context:
space:
mode:
authorIra Weiny <ira.weiny@intel.com>2022-03-31 11:05:54 -0700
committerDave Hansen <dave.hansen@linux.intel.com>2022-04-04 15:58:24 -0700
commit70431c63d7ed31baf18b0083ba5473274363a174 (patch)
treeb51b2db4035e97a6bd3b1ad5022912f9f9c7e266 /arch/x86/include/asm/pkeys.h
parent3123109284176b1532874591f7c81f3837bbdc17 (diff)
x86/pkeys: Clean up arch_set_user_pkey_access() declaration
arch_set_user_pkey_access() was declared two times in the header. Remove the 2nd declaration. Suggested-by: "Edgecombe, Rick P" <rick.p.edgecombe@intel.com> 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/20220331180554.2945884-1-ira.weiny@intel.com
Diffstat (limited to 'arch/x86/include/asm/pkeys.h')
-rw-r--r--arch/x86/include/asm/pkeys.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/include/asm/pkeys.h b/arch/x86/include/asm/pkeys.h
index 1d5f14aff5f6..9c530530b9a7 100644
--- a/arch/x86/include/asm/pkeys.h
+++ b/arch/x86/include/asm/pkeys.h
@@ -118,8 +118,6 @@ int mm_pkey_free(struct mm_struct *mm, int pkey)
return 0;
}
-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);