ipc/util: drop ipc_rcu_free()
authorKees Cook <[email protected]>
Wed, 12 Jul 2017 21:34:59 +0000 (14:34 -0700)
committerLinus Torvalds <[email protected]>
Wed, 12 Jul 2017 23:26:01 +0000 (16:26 -0700)
There are no more callers of ipc_rcu_free(), so remove it.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Kees Cook <[email protected]>
Signed-off-by: Manfred Spraul <[email protected]>
Cc: Davidlohr Bueso <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
ipc/util.c
ipc/util.h

index dd73feb1569a9a0178ad165464aaf09ed0f64f75..556884bab698c9ea9fe01bfc3dbfa962a77e55e2 100644 (file)
@@ -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
index 2578fd9be83560574cbd24d53ee2300e83ed90d3..44efbc0b635b43a6383c304dddaa605108ad20c1 100644 (file)
@@ -119,7 +119,6 @@ struct kern_ipc_perm *ipc_rcu_alloc(int size);
 int ipc_rcu_getref(struct kern_ipc_perm *ptr);
 void ipc_rcu_putref(struct kern_ipc_perm *ptr,
                        void (*func)(struct rcu_head *head));
-void ipc_rcu_free(struct rcu_head *h);
 
 struct kern_ipc_perm *ipc_lock(struct ipc_ids *, int);
 struct kern_ipc_perm *ipc_obtain_object_idr(struct ipc_ids *ids, int id);