提交 adc88ffc 编写于 作者: J Joe Perches 提交者: Jiri Kosina

frv: Convert use of typedef ctl_table to struct ctl_table

This typedef is unnecessary and should just be removed.
Signed-off-by: NJoe Perches <joe@perches.com>
Acked-by: NDavid Howells <dhowells@redhat.com>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 f0b76558
...@@ -150,7 +150,7 @@ static int user_atoi(char __user *ubuf, size_t len) ...@@ -150,7 +150,7 @@ static int user_atoi(char __user *ubuf, size_t len)
/* /*
* Send us to sleep. * Send us to sleep.
*/ */
static int sysctl_pm_do_suspend(ctl_table *ctl, int write, static int sysctl_pm_do_suspend(struct ctl_table *ctl, int write,
void __user *buffer, size_t *lenp, loff_t *fpos) void __user *buffer, size_t *lenp, loff_t *fpos)
{ {
int mode; int mode;
...@@ -197,7 +197,7 @@ static int try_set_cmode(int new_cmode) ...@@ -197,7 +197,7 @@ static int try_set_cmode(int new_cmode)
} }
static int cmode_procctl(ctl_table *ctl, int write, static int cmode_procctl(struct ctl_table *ctl, int write,
void __user *buffer, size_t *lenp, loff_t *fpos) void __user *buffer, size_t *lenp, loff_t *fpos)
{ {
int new_cmode; int new_cmode;
...@@ -269,7 +269,7 @@ static int try_set_cm(int new_cm) ...@@ -269,7 +269,7 @@ static int try_set_cm(int new_cm)
return 0; return 0;
} }
static int p0_procctl(ctl_table *ctl, int write, static int p0_procctl(struct ctl_table *ctl, int write,
void __user *buffer, size_t *lenp, loff_t *fpos) void __user *buffer, size_t *lenp, loff_t *fpos)
{ {
int new_p0; int new_p0;
...@@ -282,7 +282,7 @@ static int p0_procctl(ctl_table *ctl, int write, ...@@ -282,7 +282,7 @@ static int p0_procctl(ctl_table *ctl, int write,
return try_set_p0(new_p0)?:*lenp; return try_set_p0(new_p0)?:*lenp;
} }
static int cm_procctl(ctl_table *ctl, int write, static int cm_procctl(struct ctl_table *ctl, int write,
void __user *buffer, size_t *lenp, loff_t *fpos) void __user *buffer, size_t *lenp, loff_t *fpos)
{ {
int new_cm; int new_cm;
......
...@@ -46,7 +46,7 @@ static void frv_change_dcache_mode(unsigned long newmode) ...@@ -46,7 +46,7 @@ static void frv_change_dcache_mode(unsigned long newmode)
/* /*
* handle requests to dynamically switch the write caching mode delivered by /proc * handle requests to dynamically switch the write caching mode delivered by /proc
*/ */
static int procctl_frv_cachemode(ctl_table *table, int write, static int procctl_frv_cachemode(struct ctl_table *table, int write,
void __user *buffer, size_t *lenp, void __user *buffer, size_t *lenp,
loff_t *ppos) loff_t *ppos)
{ {
...@@ -121,7 +121,7 @@ static int procctl_frv_cachemode(ctl_table *table, int write, ...@@ -121,7 +121,7 @@ static int procctl_frv_cachemode(ctl_table *table, int write,
* permit the mm_struct the nominated process is using have its MMU context ID pinned * permit the mm_struct the nominated process is using have its MMU context ID pinned
*/ */
#ifdef CONFIG_MMU #ifdef CONFIG_MMU
static int procctl_frv_pin_cxnr(ctl_table *table, int write, static int procctl_frv_pin_cxnr(struct ctl_table *table, int write,
void __user *buffer, size_t *lenp, void __user *buffer, size_t *lenp,
loff_t *ppos) loff_t *ppos)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册