diff mbox series

Yama: mark function as static

Message ID 1553673018-19234-1-git-send-email-mojha@codeaurora.org (mailing list archive)
State New, archived
Headers show
Series Yama: mark function as static | expand

Commit Message

Mukesh Ojha March 27, 2019, 7:50 a.m. UTC
Sparse complains yama_task_prctl can be static. Fix it by making
it static.

Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
---
 security/yama/yama_lsm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

James Morris April 10, 2019, 5:37 p.m. UTC | #1
On Wed, 27 Mar 2019, Mukesh Ojha wrote:

> Sparse complains yama_task_prctl can be static. Fix it by making
> it static.
> 
> Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>

Applied to
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git next-general
diff mbox series

Patch

diff --git a/security/yama/yama_lsm.c b/security/yama/yama_lsm.c
index 57cc607..9c5a15b 100644
--- a/security/yama/yama_lsm.c
+++ b/security/yama/yama_lsm.c
@@ -222,7 +222,7 @@  void yama_task_free(struct task_struct *task)
  * Return 0 on success, -ve on error.  -ENOSYS is returned when Yama
  * does not handle the given option.
  */
-int yama_task_prctl(int option, unsigned long arg2, unsigned long arg3,
+static int yama_task_prctl(int option, unsigned long arg2, unsigned long arg3,
 			   unsigned long arg4, unsigned long arg5)
 {
 	int rc = -ENOSYS;