Skip to content

Commit a5c5928

Browse files
JoePerchestorvalds
authored andcommitted
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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent d6f50c9 commit a5c5928

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

ipc/ipc_sysctl.c

+7-7
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
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)
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,
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,
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,
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,
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)
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
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
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;
2121
which = (which - (char *)&init_ipc_ns) + (char *)ipc_ns;
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,
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;
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[] = {
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[] = {
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,

0 commit comments

Comments
 (0)