Skip to content

Commit 665c774

Browse files
Alexey Dobriyantorvalds
authored andcommitted
ipcns: move free_ipcs() proto
Function is really private to ipc/ and avoid struct kern_ipc_perm forward declaration. Signed-off-by: Alexey Dobriyan <[email protected]> Reviewed-by: WANG Cong <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent b4188de commit 665c774

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

include/linux/ipc_namespace.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,6 @@ static inline int mq_init_ns(struct ipc_namespace *ns) { return 0; }
9696
#if defined(CONFIG_IPC_NS)
9797
extern struct ipc_namespace *copy_ipcs(unsigned long flags,
9898
struct ipc_namespace *ns);
99-
extern void free_ipcs(struct ipc_namespace *ns, struct ipc_ids *ids,
100-
void (*free)(struct ipc_namespace *,
101-
struct kern_ipc_perm *));
102-
10399
static inline struct ipc_namespace *get_ipc_ns(struct ipc_namespace *ns)
104100
{
105101
if (ns)

ipc/util.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,5 +171,6 @@ static inline void ipc_unlock(struct kern_ipc_perm *perm)
171171
struct kern_ipc_perm *ipc_lock_check(struct ipc_ids *ids, int id);
172172
int ipcget(struct ipc_namespace *ns, struct ipc_ids *ids,
173173
struct ipc_ops *ops, struct ipc_params *params);
174-
174+
void free_ipcs(struct ipc_namespace *ns, struct ipc_ids *ids,
175+
void (*free)(struct ipc_namespace *, struct kern_ipc_perm *));
175176
#endif

0 commit comments

Comments
 (0)