summaryrefslogtreecommitdiffstats
path: root/ipc/util.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2017-07-12 14:34:59 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2017-07-12 16:26:01 -0700
commit5ccc8fb54f1c083f1dc7e073150ec18d43457872 (patch)
tree8abaed352aa57070ffe15a94ff48c2870911ba0c /ipc/util.c
parent9ef5932f8a1134b9d93676ee26701b2be90c7a95 (diff)
downloadlinux-5ccc8fb54f1c083f1dc7e073150ec18d43457872.tar.gz
linux-5ccc8fb54f1c083f1dc7e073150ec18d43457872.tar.bz2
linux-5ccc8fb54f1c083f1dc7e073150ec18d43457872.zip
ipc/util: drop ipc_rcu_free()
There are no more callers of ipc_rcu_free(), so remove it. Link: http://lkml.kernel.org/r/20170525185107.12869-9-manfred@colorfullife.com Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Manfred Spraul <manfred@colorfullife.com> Cc: Davidlohr Bueso <dave@stgolabs.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc/util.c')
-rw-r--r--ipc/util.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/ipc/util.c b/ipc/util.c
index dd73feb1569a..556884bab698 100644
--- a/ipc/util.c
+++ b/ipc/util.c
@@ -429,13 +429,6 @@ void ipc_rcu_putref(struct kern_ipc_perm *ptr,
call_rcu(&ptr->rcu, func);
}
-void ipc_rcu_free(struct rcu_head *h)
-{
- struct kern_ipc_perm *ptr = container_of(h, struct kern_ipc_perm, rcu);
-
- kvfree(ptr);
-}
-
/**
* ipcperms - check ipc permissions
* @ns: ipc namespace