]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Yama: mark function as static
authorMukesh Ojha <mojha@codeaurora.org>
Wed, 27 Mar 2019 07:50:18 +0000 (13:20 +0530)
committerJames Morris <james.morris@microsoft.com>
Wed, 10 Apr 2019 17:36:45 +0000 (10:36 -0700)
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>
security/yama/yama_lsm.c

index 06b14a57b0a40a4d69b9c8a5a06904dd4c39dfac..efac68556b4571e0ebef345935cdba035a13a285 100644 (file)
@@ -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;