Skip to contentSkip to conversation

ipc/util: drop ipc_rcu_free()

PATCH New [email protected] 1 participant 1 message Jul 12, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 39/96 ipc/util: drop ipc_rcu_free()

From: Kees Cook <[email protected]>
Subject: ipc/util: drop ipc_rcu_free()

There are no more callers of ipc_rcu_free(), so remove it.

---

 ipc/util.c |    7 -------
 ipc/util.h |    1 -
 2 files changed, 8 deletions(-)
ipc/util.c renamed from ipc/util.c~ipc-util-drop-ipc_rcu_free +0 -6
diff -puN ipc/util.c~ipc-util-drop-ipc_rcu_free ipc/util.c
@@ -429,13 +429,6 @@ void ipc_rcu_putref(struct kern_ipc_perm
 	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);
-}