Skip to content

Commit

Permalink
ipc/util: drop ipc_rcu_free()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
kees authored and torvalds committed Jul 12, 2017
1 parent 9ef5932 commit 5ccc8fb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
7 changes: 0 additions & 7 deletions ipc/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion ipc/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5ccc8fb

Please sign in to comment.