summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipc/util.c7
-rw-r--r--ipc/util.h1
2 files changed, 0 insertions, 8 deletions
diff --git a/ipc/util.c b/ipc/util.c
index dd73feb1569a..556884bab698 100644
--- a/ipc/util.c
+++ b/ipc/util.c
@@ -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
diff --git a/ipc/util.h b/ipc/util.h
index 2578fd9be835..44efbc0b635b 100644
--- a/ipc/util.h
+++ b/ipc/util.h
@@ -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);