All of lore.kernel.org
 help / color / mirror / Atom feed
* [RESEND PATCH] x86/pkeys: Clean up arch_set_user_pkey_access() declaration
@ 2022-03-31 18:05 ira.weiny
  2022-04-04 23:57 ` [tip: x86/cleanups] " tip-bot2 for Ira Weiny
  0 siblings, 1 reply; 2+ messages in thread
From: ira.weiny @ 2022-03-31 18:05 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen
  Cc: x86, Ira Weiny, linux-kernel

From: Ira Weiny <ira.weiny@intel.com>

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>

---
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@intel.com/
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [tip: x86/cleanups] x86/pkeys: Clean up arch_set_user_pkey_access() declaration
  2022-03-31 18:05 [RESEND PATCH] x86/pkeys: Clean up arch_set_user_pkey_access() declaration ira.weiny
@ 2022-04-04 23:57 ` tip-bot2 for Ira Weiny
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot2 for Ira Weiny @ 2022-04-04 23:57 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: Edgecombe, Rick P, Ira Weiny, Dave Hansen, x86, linux-kernel

The following commit has been merged into the x86/cleanups branch of tip:

Commit-ID:     70431c63d7ed31baf18b0083ba5473274363a174
Gitweb:        https://git.kernel.org/tip/70431c63d7ed31baf18b0083ba5473274363a174
Author:        Ira Weiny <ira.weiny@intel.com>
AuthorDate:    Thu, 31 Mar 2022 11:05:54 -07:00
Committer:     Dave Hansen <dave.hansen@linux.intel.com>
CommitterDate: Mon, 04 Apr 2022 15:58:24 -07:00

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
---
 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 1d5f14a..9c53053 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);
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-05  2:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-31 18:05 [RESEND PATCH] x86/pkeys: Clean up arch_set_user_pkey_access() declaration ira.weiny
2022-04-04 23:57 ` [tip: x86/cleanups] " tip-bot2 for Ira Weiny

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.