Skip to contentSkip to conversation

ipc: shm: make compat_ksys_shmctl() static

PATCH Applied Jason Yan 1 participant 1 message Apr 3, 2020

lore
Share & tools
lore

Jason Yan

author
#0 lore raw

PATCH 1/1 ipc: shm: 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?

---
 ipc/shm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ipc/shm.c +1 -1
index ce1ca9f7c6e9..0ba6add05b35 100644
@@ -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;
Signature · 1 line
2.17.2