[RESEND PATCH] x86/pkeys: Clean up arch_set_user_pkey_access() declaration
From: ira . weiny
Date: Thu Mar 31 2022 - 14:06:02 EST
From: Ira Weiny <ira.weiny@xxxxxxxxx>
arch_set_user_pkey_access() was declared two times in the header.
Remove the 2nd declaration.
Suggested-by: "Edgecombe, Rick P" <rick.p.edgecombe@xxxxxxxxx>
Signed-off-by: Ira Weiny <ira.weiny@xxxxxxxxx>
---
This is a resend of a patch[1] which was originally part of a larger clean up
series. Dave asked that the type clean up be reworked but the first 2 patches
are separate from that work and should stand on their own.
Resending this patch for inclusion on it's own.
[1] https://lore.kernel.org/lkml/20220311005742.1060992-2-ira.weiny@xxxxxxxxx/
---
arch/x86/include/asm/pkeys.h | 2 --
1 file changed, 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);
--
2.35.1