diff options
author | Joe Perches <joe@perches.com> | 2014-06-06 17:38:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-06 19:08:16 -0400 |
commit | a5c5928b759d8c7382cccc7be36769a68046cc58 (patch) | |
tree | 6d3c53120aadc13bdeae0fb69d322e54c54a6137 /ipc/mq_sysctl.c | |
parent | d6f50c95e0e44fa722852ae24aa51d4b7f0d56ed (diff) |
ipc: convert use of typedef ctl_table to struct ctl_table
This typedef is unnecessary and should just be removed.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc/mq_sysctl.c')
-rw-r--r-- | ipc/mq_sysctl.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ipc/mq_sysctl.c b/ipc/mq_sysctl.c index 5bb8bfe67149..68d4e953762c 100644 --- a/ipc/mq_sysctl.c +++ b/ipc/mq_sysctl.c | |||
@@ -14,7 +14,7 @@ | |||
14 | #include <linux/sysctl.h> | 14 | #include <linux/sysctl.h> |
15 | 15 | ||
16 | #ifdef CONFIG_PROC_SYSCTL | 16 | #ifdef CONFIG_PROC_SYSCTL |
17 | static void *get_mq(ctl_table *table) | 17 | static void *get_mq(struct ctl_table *table) |
18 | { | 18 | { |
19 | char *which = table->data; | 19 | char *which = table->data; |
20 | struct ipc_namespace *ipc_ns = current->nsproxy->ipc_ns; | 20 | struct ipc_namespace *ipc_ns = current->nsproxy->ipc_ns; |
@@ -22,7 +22,7 @@ static void *get_mq(ctl_table *table) | |||
22 | return which; | 22 | return which; |
23 | } | 23 | } |
24 | 24 | ||
25 | static int proc_mq_dointvec(ctl_table *table, int write, | 25 | static int proc_mq_dointvec(struct ctl_table *table, int write, |
26 | void __user *buffer, size_t *lenp, loff_t *ppos) | 26 | void __user *buffer, size_t *lenp, loff_t *ppos) |
27 | { | 27 | { |
28 | struct ctl_table mq_table; | 28 | struct ctl_table mq_table; |
@@ -32,7 +32,7 @@ static int proc_mq_dointvec(ctl_table *table, int write, | |||
32 | return proc_dointvec(&mq_table, write, buffer, lenp, ppos); | 32 | return proc_dointvec(&mq_table, write, buffer, lenp, ppos); |
33 | } | 33 | } |
34 | 34 | ||
35 | static int proc_mq_dointvec_minmax(ctl_table *table, int write, | 35 | static int proc_mq_dointvec_minmax(struct ctl_table *table, int write, |
36 | void __user *buffer, size_t *lenp, loff_t *ppos) | 36 | void __user *buffer, size_t *lenp, loff_t *ppos) |
37 | { | 37 | { |
38 | struct ctl_table mq_table; | 38 | struct ctl_table mq_table; |
@@ -53,7 +53,7 @@ static int msg_max_limit_max = HARD_MSGMAX; | |||
53 | static int msg_maxsize_limit_min = MIN_MSGSIZEMAX; | 53 | static int msg_maxsize_limit_min = MIN_MSGSIZEMAX; |
54 | static int msg_maxsize_limit_max = HARD_MSGSIZEMAX; | 54 | static int msg_maxsize_limit_max = HARD_MSGSIZEMAX; |
55 | 55 | ||
56 | static ctl_table mq_sysctls[] = { | 56 | static struct ctl_table mq_sysctls[] = { |
57 | { | 57 | { |
58 | .procname = "queues_max", | 58 | .procname = "queues_max", |
59 | .data = &init_ipc_ns.mq_queues_max, | 59 | .data = &init_ipc_ns.mq_queues_max, |
@@ -100,7 +100,7 @@ static ctl_table mq_sysctls[] = { | |||
100 | {} | 100 | {} |
101 | }; | 101 | }; |
102 | 102 | ||
103 | static ctl_table mq_sysctl_dir[] = { | 103 | static struct ctl_table mq_sysctl_dir[] = { |
104 | { | 104 | { |
105 | .procname = "mqueue", | 105 | .procname = "mqueue", |
106 | .mode = 0555, | 106 | .mode = 0555, |
@@ -109,7 +109,7 @@ static ctl_table mq_sysctl_dir[] = { | |||
109 | {} | 109 | {} |
110 | }; | 110 | }; |
111 | 111 | ||
112 | static ctl_table mq_sysctl_root[] = { | 112 | static struct ctl_table mq_sysctl_root[] = { |
113 | { | 113 | { |
114 | .procname = "fs", | 114 | .procname = "fs", |
115 | .mode = 0555, | 115 | .mode = 0555, |