mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
sysctl: Register the base sysctl table like any other sysctl table.
Simplify the code by treating the base sysctl table like any other sysctl table and register it with register_sysctl_table. To ensure this table is registered early enough to avoid problems call sysctl_init from proc_sys_init. Rename sysctl_net.c:sysctl_init() to net_sysctl_init() to avoid name conflicts now that kernel/sysctl.c:sysctl_init() is no longer static. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
This commit is contained in:
@@ -90,7 +90,7 @@ static struct pernet_operations sysctl_pernet_ops = {
|
||||
.exit = sysctl_net_exit,
|
||||
};
|
||||
|
||||
static __init int sysctl_init(void)
|
||||
static __init int net_sysctl_init(void)
|
||||
{
|
||||
int ret;
|
||||
ret = register_pernet_subsys(&sysctl_pernet_ops);
|
||||
@@ -102,7 +102,7 @@ static __init int sysctl_init(void)
|
||||
out:
|
||||
return ret;
|
||||
}
|
||||
subsys_initcall(sysctl_init);
|
||||
subsys_initcall(net_sysctl_init);
|
||||
|
||||
struct ctl_table_header *register_net_sysctl_table(struct net *net,
|
||||
const struct ctl_path *path, struct ctl_table *table)
|
||||
|
Reference in New Issue
Block a user