From 5ccc8fb54f1c083f1dc7e073150ec18d43457872 Mon Sep 17 00:00:00 2001 From: Kees Cook Date: Wed, 12 Jul 2017 14:34:59 -0700 Subject: 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 Signed-off-by: Manfred Spraul Cc: Davidlohr Bueso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- ipc/util.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'ipc/util.c') 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 -- cgit v1.2.3-59-g8ed1b