ipc/util: drop ipc_rcu_free()

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]>
This commit is contained in:
Kees Cook 2017-07-12 14:34:59 -07:00 • committed by Linus Torvalds
commit 5ccc8fb54f
2 changed files with 0 additions and 8 deletions

View 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