Skip to content

Commit 44656ba

Browse files
author
David S. Miller
committed
[NET]: Kill proc_net_create()
There are no more users. Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 33120b3 commit 44656ba

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

‎fs/proc/proc_net.c‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,6 @@
2626
#include "internal.h"
2727

2828

29-
struct proc_dir_entry *proc_net_create(struct net *net,
30-
const char *name, mode_t mode, get_info_t *get_info)
31-
{
32-
return create_proc_info_entry(name,mode, net->proc_net, get_info);
33-
}
34-
EXPORT_SYMBOL_GPL(proc_net_create);
35-
3629
struct proc_dir_entry *proc_net_fops_create(struct net *net,
3730
const char *name, mode_t mode, const struct file_operations *fops)
3831
{

‎include/linux/proc_fs.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,6 @@ static inline struct proc_dir_entry *create_proc_info_entry(const char *name,
196196
return res;
197197
}
198198

199-
extern struct proc_dir_entry *proc_net_create(struct net *net,
200-
const char *name, mode_t mode, get_info_t *get_info);
201199
extern struct proc_dir_entry *proc_net_fops_create(struct net *net,
202200
const char *name, mode_t mode, const struct file_operations *fops);
203201
extern void proc_net_remove(struct net *net, const char *name);
@@ -208,7 +206,6 @@ extern void proc_net_remove(struct net *net, const char *name);
208206
#define proc_bus NULL
209207

210208
#define proc_net_fops_create(net, name, mode, fops) ({ (void)(mode), NULL; })
211-
#define proc_net_create(net, name, mode, info) ({ (void)(mode), NULL; })
212209
static inline void proc_net_remove(struct net *net, const char *name) {}
213210

214211
static inline void proc_flush_task(struct task_struct *task)

0 commit comments

Comments
 (0)