diff options
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
-rw-r--r-- | net/unix/sysctl_net_unix.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/unix/sysctl_net_unix.c b/net/unix/sysctl_net_unix.c index 83c093077ebc..397cffebb3b6 100644 --- a/net/unix/sysctl_net_unix.c +++ b/net/unix/sysctl_net_unix.c | |||
@@ -10,29 +10,29 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <linux/mm.h> | 12 | #include <linux/mm.h> |
13 | #include <linux/slab.h> | ||
13 | #include <linux/sysctl.h> | 14 | #include <linux/sysctl.h> |
14 | 15 | ||
15 | #include <net/af_unix.h> | 16 | #include <net/af_unix.h> |
16 | 17 | ||
17 | static ctl_table unix_table[] = { | 18 | static ctl_table unix_table[] = { |
18 | { | 19 | { |
19 | .ctl_name = NET_UNIX_MAX_DGRAM_QLEN, | ||
20 | .procname = "max_dgram_qlen", | 20 | .procname = "max_dgram_qlen", |
21 | .data = &init_net.unx.sysctl_max_dgram_qlen, | 21 | .data = &init_net.unx.sysctl_max_dgram_qlen, |
22 | .maxlen = sizeof(int), | 22 | .maxlen = sizeof(int), |
23 | .mode = 0644, | 23 | .mode = 0644, |
24 | .proc_handler = proc_dointvec | 24 | .proc_handler = proc_dointvec |
25 | }, | 25 | }, |
26 | { .ctl_name = 0 } | 26 | { } |
27 | }; | 27 | }; |
28 | 28 | ||
29 | static struct ctl_path unix_path[] = { | 29 | static struct ctl_path unix_path[] = { |
30 | { .procname = "net", .ctl_name = CTL_NET, }, | 30 | { .procname = "net", }, |
31 | { .procname = "unix", .ctl_name = NET_UNIX, }, | 31 | { .procname = "unix", }, |
32 | { }, | 32 | { }, |
33 | }; | 33 | }; |
34 | 34 | ||
35 | int unix_sysctl_register(struct net *net) | 35 | int __net_init unix_sysctl_register(struct net *net) |
36 | { | 36 | { |
37 | struct ctl_table *table; | 37 | struct ctl_table *table; |
38 | 38 | ||