History

ipc: convert use of typedef ctl_table to struct ctl_table

This typedef is unnecessary and should just be removed.

Joe Perches committed 12 years ago

Commit a5c59281 parent d6f50c92 files · +13 −13Browse files

Unified · Split

2 files
  1. ipc/ipc_sysctl.c +7 −7
  2. ipc/mq_sysctl.c +6 −6
ipc/ipc_sysctl.c+7−7
@@ -18,7 +18,7 @@ · 17 unmodified lines
1818 #include <linux/msg.h>
1919 #include "util.h"
2020
21−static void *get_ipc(ctl_table *table)
21+static void *get_ipc(struct ctl_table *table)
2222 {
2323 char *which = table->data;
2424 struct ipc_namespace *ipc_ns = current->nsproxy->ipc_ns;
@@ -27,7 +27,7 @@ static void *get_ipc(ctl_table *table) · 2 unmodified lines
2727 }
2828
2929 #ifdef CONFIG_PROC_SYSCTL
30−static int proc_ipc_dointvec(ctl_table *table, int write,
30+static int proc_ipc_dointvec(struct ctl_table *table, int write,
3131 void __user *buffer, size_t *lenp, loff_t *ppos)
3232 {
3333 struct ctl_table ipc_table;
@@ -38,7 +38,7 @@ static int proc_ipc_dointvec(ctl_table *table, int write, · 4 unmodified lines
3838 return proc_dointvec(&ipc_table, write, buffer, lenp, ppos);
3939 }
4040
41−static int proc_ipc_dointvec_minmax(ctl_table *table, int write,
41+static int proc_ipc_dointvec_minmax(struct ctl_table *table, int write,
4242 void __user *buffer, size_t *lenp, loff_t *ppos)
4343 {
4444 struct ctl_table ipc_table;
@@ -49,7 +49,7 @@ static int proc_ipc_dointvec_minmax(ctl_table *table, int write, · 4 unmodified lines
4949 return proc_dointvec_minmax(&ipc_table, write, buffer, lenp, ppos);
5050 }
5151
52−static int proc_ipc_dointvec_minmax_orphans(ctl_table *table, int write,
52+static int proc_ipc_dointvec_minmax_orphans(struct ctl_table *table, int write,
5353 void __user *buffer, size_t *lenp, loff_t *ppos)
5454 {
5555 struct ipc_namespace *ns = current->nsproxy->ipc_ns;
@@ -62,7 +62,7 @@ static int proc_ipc_dointvec_minmax_orphans(ctl_table *table, int write, · 6 unmodified lines
6262 return err;
6363 }
6464
65−static int proc_ipc_callback_dointvec_minmax(ctl_table *table, int write,
65+static int proc_ipc_callback_dointvec_minmax(struct ctl_table *table, int write,
6666 void __user *buffer, size_t *lenp, loff_t *ppos)
6767 {
6868 struct ctl_table ipc_table;
@@ -85,7 +85,7 @@ static int proc_ipc_callback_dointvec_minmax(ctl_table *table, int write, · 16 unmodified lines
8585 return rc;
8686 }
8787
88−static int proc_ipc_doulongvec_minmax(ctl_table *table, int write,
88+static int proc_ipc_doulongvec_minmax(struct ctl_table *table, int write,
8989 void __user *buffer, size_t *lenp, loff_t *ppos)
9090 {
9191 struct ctl_table ipc_table;
@@ -119,7 +119,7 @@ static void ipc_auto_callback(int val) · 27 unmodified lines
119119 }
120120 }
121121
122−static int proc_ipcauto_dointvec_minmax(ctl_table *table, int write,
122+static int proc_ipcauto_dointvec_minmax(struct ctl_table *table, int write,
123123 void __user *buffer, size_t *lenp, loff_t *ppos)
124124 {
125125 struct ctl_table ipc_table;
ipc/mq_sysctl.c+6−6
@@ -14,7 +14,7 @@ · 13 unmodified lines
1414 #include <linux/sysctl.h>
1515
1616 #ifdef CONFIG_PROC_SYSCTL
17−static void *get_mq(ctl_table *table)
17+static void *get_mq(struct ctl_table *table)
1818 {
1919 char *which = table->data;
2020 struct ipc_namespace *ipc_ns = current->nsproxy->ipc_ns;
@@ -22,7 +22,7 @@ static void *get_mq(ctl_table *table) · 1 unmodified line
2222 return which;
2323 }
2424
25−static int proc_mq_dointvec(ctl_table *table, int write,
25+static int proc_mq_dointvec(struct ctl_table *table, int write,
2626 void __user *buffer, size_t *lenp, loff_t *ppos)
2727 {
2828 struct ctl_table mq_table;
@@ -32,7 +32,7 @@ static int proc_mq_dointvec(ctl_table *table, int write, · 3 unmodified lines
3232 return proc_dointvec(&mq_table, write, buffer, lenp, ppos);
3333 }
3434
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,
3636 void __user *buffer, size_t *lenp, loff_t *ppos)
3737 {
3838 struct ctl_table mq_table;
@@ -53,7 +53,7 @@ static int msg_max_limit_max = HARD_MSGMAX; · 14 unmodified lines
5353 static int msg_maxsize_limit_min = MIN_MSGSIZEMAX;
5454 static int msg_maxsize_limit_max = HARD_MSGSIZEMAX;
5555
56−static ctl_table mq_sysctls[] = {
56+static struct ctl_table mq_sysctls[] = {
5757 {
5858 .procname = "queues_max",
5959 .data = &init_ipc_ns.mq_queues_max,
@@ -100,7 +100,7 @@ static ctl_table mq_sysctls[] = { · 40 unmodified lines
100100 {}
101101 };
102102
103−static ctl_table mq_sysctl_dir[] = {
103+static struct ctl_table mq_sysctl_dir[] = {
104104 {
105105 .procname = "mqueue",
106106 .mode = 0555,
@@ -109,7 +109,7 @@ static ctl_table mq_sysctl_dir[] = { · 2 unmodified lines
109109 {}
110110 };
111111
112−static ctl_table mq_sysctl_root[] = {
112+static struct ctl_table mq_sysctl_root[] = {
113113 {
114114 .procname = "fs",
115115 .mode = 0555,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t