Commit a151427e authored by Joe Perches's avatar Joe Perches Committed by Greg Kroah-Hartman

char: Convert use of typedef ctl_table to struct ctl_table

This typedef is unnecessary and should just be removed.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c36c5736
...@@ -725,7 +725,7 @@ static int hpet_is_known(struct hpet_data *hdp) ...@@ -725,7 +725,7 @@ static int hpet_is_known(struct hpet_data *hdp)
return 0; return 0;
} }
static ctl_table hpet_table[] = { static struct ctl_table hpet_table[] = {
{ {
.procname = "max-user-freq", .procname = "max-user-freq",
.data = &hpet_max_freq, .data = &hpet_max_freq,
...@@ -736,7 +736,7 @@ static ctl_table hpet_table[] = { ...@@ -736,7 +736,7 @@ static ctl_table hpet_table[] = {
{} {}
}; };
static ctl_table hpet_root[] = { static struct ctl_table hpet_root[] = {
{ {
.procname = "hpet", .procname = "hpet",
.maxlen = 0, .maxlen = 0,
...@@ -746,7 +746,7 @@ static ctl_table hpet_root[] = { ...@@ -746,7 +746,7 @@ static ctl_table hpet_root[] = {
{} {}
}; };
static ctl_table dev_root[] = { static struct ctl_table dev_root[] = {
{ {
.procname = "dev", .procname = "dev",
.maxlen = 0, .maxlen = 0,
......
...@@ -659,7 +659,7 @@ static struct ipmi_smi_watcher smi_watcher = { ...@@ -659,7 +659,7 @@ static struct ipmi_smi_watcher smi_watcher = {
#ifdef CONFIG_PROC_FS #ifdef CONFIG_PROC_FS
#include <linux/sysctl.h> #include <linux/sysctl.h>
static ctl_table ipmi_table[] = { static struct ctl_table ipmi_table[] = {
{ .procname = "poweroff_powercycle", { .procname = "poweroff_powercycle",
.data = &poweroff_powercycle, .data = &poweroff_powercycle,
.maxlen = sizeof(poweroff_powercycle), .maxlen = sizeof(poweroff_powercycle),
...@@ -668,14 +668,14 @@ static ctl_table ipmi_table[] = { ...@@ -668,14 +668,14 @@ static ctl_table ipmi_table[] = {
{ } { }
}; };
static ctl_table ipmi_dir_table[] = { static struct ctl_table ipmi_dir_table[] = {
{ .procname = "ipmi", { .procname = "ipmi",
.mode = 0555, .mode = 0555,
.child = ipmi_table }, .child = ipmi_table },
{ } { }
}; };
static ctl_table ipmi_root_table[] = { static struct ctl_table ipmi_root_table[] = {
{ .procname = "dev", { .procname = "dev",
.mode = 0555, .mode = 0555,
.child = ipmi_dir_table }, .child = ipmi_dir_table },
......
...@@ -1381,10 +1381,10 @@ static char sysctl_bootid[16]; ...@@ -1381,10 +1381,10 @@ static char sysctl_bootid[16];
* as an ASCII string in the standard UUID format. If accesses via the * as an ASCII string in the standard UUID format. If accesses via the
* sysctl system call, it is returned as 16 bytes of binary data. * sysctl system call, it is returned as 16 bytes of binary data.
*/ */
static int proc_do_uuid(ctl_table *table, int write, static int proc_do_uuid(struct ctl_table *table, int write,
void __user *buffer, size_t *lenp, loff_t *ppos) void __user *buffer, size_t *lenp, loff_t *ppos)
{ {
ctl_table fake_table; struct ctl_table fake_table;
unsigned char buf[64], tmp_uuid[16], *uuid; unsigned char buf[64], tmp_uuid[16], *uuid;
uuid = table->data; uuid = table->data;
...@@ -1409,8 +1409,8 @@ static int proc_do_uuid(ctl_table *table, int write, ...@@ -1409,8 +1409,8 @@ static int proc_do_uuid(ctl_table *table, int write,
} }
static int sysctl_poolsize = INPUT_POOL_WORDS * 32; static int sysctl_poolsize = INPUT_POOL_WORDS * 32;
extern ctl_table random_table[]; extern struct ctl_table random_table[];
ctl_table random_table[] = { struct ctl_table random_table[] = {
{ {
.procname = "poolsize", .procname = "poolsize",
.data = &sysctl_poolsize, .data = &sysctl_poolsize,
......
...@@ -280,7 +280,7 @@ static irqreturn_t rtc_interrupt(int irq, void *dev_id) ...@@ -280,7 +280,7 @@ static irqreturn_t rtc_interrupt(int irq, void *dev_id)
/* /*
* sysctl-tuning infrastructure. * sysctl-tuning infrastructure.
*/ */
static ctl_table rtc_table[] = { static struct ctl_table rtc_table[] = {
{ {
.procname = "max-user-freq", .procname = "max-user-freq",
.data = &rtc_max_user_freq, .data = &rtc_max_user_freq,
...@@ -291,7 +291,7 @@ static ctl_table rtc_table[] = { ...@@ -291,7 +291,7 @@ static ctl_table rtc_table[] = {
{ } { }
}; };
static ctl_table rtc_root[] = { static struct ctl_table rtc_root[] = {
{ {
.procname = "rtc", .procname = "rtc",
.mode = 0555, .mode = 0555,
...@@ -300,7 +300,7 @@ static ctl_table rtc_root[] = { ...@@ -300,7 +300,7 @@ static ctl_table rtc_root[] = {
{ } { }
}; };
static ctl_table dev_root[] = { static struct ctl_table dev_root[] = {
{ {
.procname = "dev", .procname = "dev",
.mode = 0555, .mode = 0555,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment