summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorMukesh Ojha <mojha@codeaurora.org>2019-03-27 10:50:18 +0300
committerJames Morris <james.morris@microsoft.com>2019-04-10 20:36:45 +0300
commitecb8e74dac1aaeea4005c9d8f21337f9423f3d8b (patch)
tree4e2b49779d95679c2ecfd6576aa7fe6628c7c60e /security
parentd1a0846006e4325cc951ca0b05c02ed1d0865006 (diff)
downloadlinux-ecb8e74dac1aaeea4005c9d8f21337f9423f3d8b.tar.xz
Yama: mark function as static
Sparse complains yama_task_prctl can be static. Fix it by making it static. Signed-off-by: Mukesh Ojha <mojha@codeaurora.org> Signed-off-by: James Morris <james.morris@microsoft.com>
Diffstat (limited to 'security')
-rw-r--r--security/yama/yama_lsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/yama/yama_lsm.c b/security/yama/yama_lsm.c
index 06b14a57b0a4..efac68556b45 100644
--- a/security/yama/yama_lsm.c
+++ b/security/yama/yama_lsm.c
@@ -222,7 +222,7 @@ static 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;