Commit 1cd377ba authored by Jason Yan's avatar Jason Yan Committed by Linus Torvalds

ipc/shm.c: make compat_ksys_shmctl() static

Fix the following sparse warning:

ipc/shm.c:1335:6: warning: symbol 'compat_ksys_shmctl' was not declared.
Should it be static?
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarJason Yan <yanaijie@huawei.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/20200403063933.24785-1-yanaijie@huawei.comSigned-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 43afe4d3
...@@ -1332,7 +1332,7 @@ static int copy_compat_shmid_from_user(struct shmid64_ds *out, void __user *buf, ...@@ -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 ipc_namespace *ns;
struct shmid64_ds sem64; struct shmid64_ds sem64;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment