]> Git Repo - linux.git/commitdiff
ipc/shm.c: make compat_ksys_shmctl() static
authorJason Yan <[email protected]>
Tue, 7 Apr 2020 03:12:56 +0000 (20:12 -0700)
committerLinus Torvalds <[email protected]>
Tue, 7 Apr 2020 17:43:45 +0000 (10:43 -0700)
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]>
ipc/shm.c

index ce1ca9f7c6e97ca5035963d2d64e3c57fefe7f6c..0ba6add05b35afdb0ee7947c6ece7fb9ecc64c65 100644 (file)
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -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;
This page took 0.0659 seconds and 4 git commands to generate.