Commit 5ccc8fb5 authored by Kees Cook's avatar Kees Cook Committed by Linus Torvalds

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.comSigned-off-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarManfred Spraul <manfred@colorfullife.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 9ef5932f
...@@ -429,13 +429,6 @@ void ipc_rcu_putref(struct kern_ipc_perm *ptr, ...@@ -429,13 +429,6 @@ void ipc_rcu_putref(struct kern_ipc_perm *ptr,
call_rcu(&ptr->rcu, func); 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 * ipcperms - check ipc permissions
* @ns: ipc namespace * @ns: ipc namespace
......
...@@ -119,7 +119,6 @@ struct kern_ipc_perm *ipc_rcu_alloc(int size); ...@@ -119,7 +119,6 @@ struct kern_ipc_perm *ipc_rcu_alloc(int size);
int ipc_rcu_getref(struct kern_ipc_perm *ptr); int ipc_rcu_getref(struct kern_ipc_perm *ptr);
void ipc_rcu_putref(struct kern_ipc_perm *ptr, void ipc_rcu_putref(struct kern_ipc_perm *ptr,
void (*func)(struct rcu_head *head)); 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_lock(struct ipc_ids *, int);
struct kern_ipc_perm *ipc_obtain_object_idr(struct ipc_ids *ids, int id); struct kern_ipc_perm *ipc_obtain_object_idr(struct ipc_ids *ids, int id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment