Skip to content

Commit 1cd377b

Browse files
JasonYanHwtorvalds
authored andcommitted
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: 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]>
1 parent 43afe4d commit 1cd377b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ipc/shm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,7 @@ static int copy_compat_shmid_from_user(struct shmid64_ds *out, void __user *buf,
13321332
}
13331333
}
13341334

1335-
long compat_ksys_shmctl(int shmid, int cmd, void __user *uptr, int version)
1335+
static long compat_ksys_shmctl(int shmid, int cmd, void __user *uptr, int version)
13361336
{
13371337
struct ipc_namespace *ns;
13381338
struct shmid64_ds sem64;

0 commit comments

Comments
 (0)