mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
sysctl: Remove the unnecessary sysctl_set parent concept.
In sysctl_net register the two networking roots in the proper order. In register_sysctl walk the sysctl sets in the reverse order of the sysctl roots. Remove parent from ctl_table_set and setup_sysctl_set as it is no longer needed. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
This commit is contained in:
parent
97324cd804
commit
bd295b56cf
3 changed files with 10 additions and 9 deletions
|
@ -1047,7 +1047,6 @@ struct ctl_table_header
|
|||
|
||||
struct ctl_table_set {
|
||||
struct list_head list;
|
||||
struct ctl_table_set *parent;
|
||||
int (*is_seen)(struct ctl_table_set *);
|
||||
};
|
||||
|
||||
|
@ -1070,7 +1069,6 @@ struct ctl_path {
|
|||
void proc_sys_poll_notify(struct ctl_table_poll *poll);
|
||||
|
||||
extern void setup_sysctl_set(struct ctl_table_set *p,
|
||||
struct ctl_table_set *parent,
|
||||
int (*is_seen)(struct ctl_table_set *));
|
||||
extern void retire_sysctl_set(struct ctl_table_set *set);
|
||||
|
||||
|
@ -1102,7 +1100,6 @@ static inline void unregister_sysctl_table(struct ctl_table_header * table)
|
|||
}
|
||||
|
||||
static inline void setup_sysctl_set(struct ctl_table_set *p,
|
||||
struct ctl_table_set *parent,
|
||||
int (*is_seen)(struct ctl_table_set *))
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue