Skip to content

Commit ecb8e74

Browse files
Mukesh OjhaJames Morris
authored andcommitted
Yama: mark function as static
Sparse complains yama_task_prctl can be static. Fix it by making it static. Signed-off-by: Mukesh Ojha <[email protected]> Signed-off-by: James Morris <[email protected]>
1 parent d1a0846 commit ecb8e74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/yama/yama_lsm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ static void yama_task_free(struct task_struct *task)
222222
* Return 0 on success, -ve on error. -ENOSYS is returned when Yama
223223
* does not handle the given option.
224224
*/
225-
int yama_task_prctl(int option, unsigned long arg2, unsigned long arg3,
225+
static int yama_task_prctl(int option, unsigned long arg2, unsigned long arg3,
226226
unsigned long arg4, unsigned long arg5)
227227
{
228228
int rc = -ENOSYS;

0 commit comments

Comments
 (0)