Skip to content

Commit 5ccc8fb

Browse files
keestorvalds
authored andcommitted
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 <keescook@chromium.org> Signed-off-by: Manfred Spraul <manfred@colorfullife.com> Cc: Davidlohr Bueso <dave@stgolabs.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 9ef5932 commit 5ccc8fb

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

‎ipc/util.c‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -429,13 +429,6 @@ void ipc_rcu_putref(struct kern_ipc_perm *ptr,
429429
call_rcu(&ptr->rcu, func);
430430
}
431431

432-
void ipc_rcu_free(struct rcu_head *h)
433-
{
434-
struct kern_ipc_perm *ptr = container_of(h, struct kern_ipc_perm, rcu);
435-
436-
kvfree(ptr);
437-
}
438-
439432
/**
440433
* ipcperms - check ipc permissions
441434
* @ns: ipc namespace

‎ipc/util.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ struct kern_ipc_perm *ipc_rcu_alloc(int size);
119119
int ipc_rcu_getref(struct kern_ipc_perm *ptr);
120120
void ipc_rcu_putref(struct kern_ipc_perm *ptr,
121121
void (*func)(struct rcu_head *head));
122-
void ipc_rcu_free(struct rcu_head *h);
123122

124123
struct kern_ipc_perm *ipc_lock(struct ipc_ids *, int);
125124
struct kern_ipc_perm *ipc_obtain_object_idr(struct ipc_ids *ids, int id);

0 commit comments

Comments
 (0)