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

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.com


Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 43afe4d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;