Skip to content

Commit

Permalink
ipc/shm.c: make compat_ksys_shmctl() static
Browse files Browse the repository at this point in the history
Fix the following sparse warning:

ipc/shm.c:1335:6: warning: symbol 'compat_ksys_shmctl' was not declared.
Should it be static?

Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Jason Yan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
JasonYanHw authored and torvalds committed Apr 7, 2020
1 parent 43afe4d commit 1cd377b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipc/shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,7 @@ static int copy_compat_shmid_from_user(struct shmid64_ds *out, void __user *buf,
}
}

long compat_ksys_shmctl(int shmid, int cmd, void __user *uptr, int version)
static long compat_ksys_shmctl(int shmid, int cmd, void __user *uptr, int version)
{
struct ipc_namespace *ns;
struct shmid64_ds sem64;
Expand Down

0 comments on commit 1cd377b

Please sign in to comment.