diff options
author | Joe Perches <joe@perches.com> | 2013-06-13 22:37:27 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-06-14 05:56:07 -0400 |
commit | adc88ffc405c080956cd9af0538e294ff1368999 (patch) | |
tree | 2bb56f5b0f53e2fbfa76f6dac32568f25170e442 /arch/frv | |
parent | f0b76558cfd11dc0e28f6015e540c28a521efbaa (diff) |
frv: 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>
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'arch/frv')
-rw-r--r-- | arch/frv/kernel/pm.c | 8 | ||||
-rw-r--r-- | arch/frv/kernel/sysctl.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/arch/frv/kernel/pm.c b/arch/frv/kernel/pm.c index 0b579927439d..ac767d94a880 100644 --- a/arch/frv/kernel/pm.c +++ b/arch/frv/kernel/pm.c | |||
@@ -150,7 +150,7 @@ static int user_atoi(char __user *ubuf, size_t len) | |||
150 | /* | 150 | /* |
151 | * Send us to sleep. | 151 | * Send us to sleep. |
152 | */ | 152 | */ |
153 | static int sysctl_pm_do_suspend(ctl_table *ctl, int write, | 153 | static int sysctl_pm_do_suspend(struct ctl_table *ctl, int write, |
154 | void __user *buffer, size_t *lenp, loff_t *fpos) | 154 | void __user *buffer, size_t *lenp, loff_t *fpos) |
155 | { | 155 | { |
156 | int mode; | 156 | int mode; |
@@ -197,7 +197,7 @@ static int try_set_cmode(int new_cmode) | |||
197 | } | 197 | } |
198 | 198 | ||
199 | 199 | ||
200 | static int cmode_procctl(ctl_table *ctl, int write, | 200 | static int cmode_procctl(struct ctl_table *ctl, int write, |
201 | void __user *buffer, size_t *lenp, loff_t *fpos) | 201 | void __user *buffer, size_t *lenp, loff_t *fpos) |
202 | { | 202 | { |
203 | int new_cmode; | 203 | int new_cmode; |
@@ -269,7 +269,7 @@ static int try_set_cm(int new_cm) | |||
269 | return 0; | 269 | return 0; |
270 | } | 270 | } |
271 | 271 | ||
272 | static int p0_procctl(ctl_table *ctl, int write, | 272 | static int p0_procctl(struct ctl_table *ctl, int write, |
273 | void __user *buffer, size_t *lenp, loff_t *fpos) | 273 | void __user *buffer, size_t *lenp, loff_t *fpos) |
274 | { | 274 | { |
275 | int new_p0; | 275 | int new_p0; |
@@ -282,7 +282,7 @@ static int p0_procctl(ctl_table *ctl, int write, | |||
282 | return try_set_p0(new_p0)?:*lenp; | 282 | return try_set_p0(new_p0)?:*lenp; |
283 | } | 283 | } |
284 | 284 | ||
285 | static int cm_procctl(ctl_table *ctl, int write, | 285 | static int cm_procctl(struct ctl_table *ctl, int write, |
286 | void __user *buffer, size_t *lenp, loff_t *fpos) | 286 | void __user *buffer, size_t *lenp, loff_t *fpos) |
287 | { | 287 | { |
288 | int new_cm; | 288 | int new_cm; |
diff --git a/arch/frv/kernel/sysctl.c b/arch/frv/kernel/sysctl.c index 6c155d69da29..f4dfae2c75ad 100644 --- a/arch/frv/kernel/sysctl.c +++ b/arch/frv/kernel/sysctl.c | |||
@@ -46,7 +46,7 @@ static void frv_change_dcache_mode(unsigned long newmode) | |||
46 | /* | 46 | /* |
47 | * handle requests to dynamically switch the write caching mode delivered by /proc | 47 | * handle requests to dynamically switch the write caching mode delivered by /proc |
48 | */ | 48 | */ |
49 | static int procctl_frv_cachemode(ctl_table *table, int write, | 49 | static int procctl_frv_cachemode(struct ctl_table *table, int write, |
50 | void __user *buffer, size_t *lenp, | 50 | void __user *buffer, size_t *lenp, |
51 | loff_t *ppos) | 51 | loff_t *ppos) |
52 | { | 52 | { |
@@ -121,7 +121,7 @@ static int procctl_frv_cachemode(ctl_table *table, int write, | |||
121 | * permit the mm_struct the nominated process is using have its MMU context ID pinned | 121 | * permit the mm_struct the nominated process is using have its MMU context ID pinned |
122 | */ | 122 | */ |
123 | #ifdef CONFIG_MMU | 123 | #ifdef CONFIG_MMU |
124 | static int procctl_frv_pin_cxnr(ctl_table *table, int write, | 124 | static int procctl_frv_pin_cxnr(struct ctl_table *table, int write, |
125 | void __user *buffer, size_t *lenp, | 125 | void __user *buffer, size_t *lenp, |
126 | loff_t *ppos) | 126 | loff_t *ppos) |
127 | { | 127 | { |