aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-10-22 18:29:46 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-10-28 03:36:25 -0400
commit302bfe20ade2a7d6d02632ae8a775a68f651c0be (patch)
tree3b0a2b3b361b7486b3b815e41bdcdd66aa6cb4fc
parentcb4deb69624c19980dded34a8cba7b67044c9fa9 (diff)
s390: 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> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r--arch/s390/appldata/appldata_base.c10
-rw-r--r--arch/s390/kernel/debug.c2
-rw-r--r--arch/s390/mm/cmm.c8
3 files changed, 10 insertions, 10 deletions
diff --git a/arch/s390/appldata/appldata_base.c b/arch/s390/appldata/appldata_base.c
index 603d2003cd9f..4c4a1cef5208 100644
--- a/arch/s390/appldata/appldata_base.c
+++ b/arch/s390/appldata/appldata_base.c
@@ -48,9 +48,9 @@ static struct platform_device *appldata_pdev;
48 * /proc entries (sysctl) 48 * /proc entries (sysctl)
49 */ 49 */
50static const char appldata_proc_name[APPLDATA_PROC_NAME_LENGTH] = "appldata"; 50static const char appldata_proc_name[APPLDATA_PROC_NAME_LENGTH] = "appldata";
51static int appldata_timer_handler(ctl_table *ctl, int write, 51static int appldata_timer_handler(struct ctl_table *ctl, int write,
52 void __user *buffer, size_t *lenp, loff_t *ppos); 52 void __user *buffer, size_t *lenp, loff_t *ppos);
53static int appldata_interval_handler(ctl_table *ctl, int write, 53static int appldata_interval_handler(struct ctl_table *ctl, int write,
54 void __user *buffer, 54 void __user *buffer,
55 size_t *lenp, loff_t *ppos); 55 size_t *lenp, loff_t *ppos);
56 56
@@ -201,7 +201,7 @@ static void __appldata_vtimer_setup(int cmd)
201 * Start/Stop timer, show status of timer (0 = not active, 1 = active) 201 * Start/Stop timer, show status of timer (0 = not active, 1 = active)
202 */ 202 */
203static int 203static int
204appldata_timer_handler(ctl_table *ctl, int write, 204appldata_timer_handler(struct ctl_table *ctl, int write,
205 void __user *buffer, size_t *lenp, loff_t *ppos) 205 void __user *buffer, size_t *lenp, loff_t *ppos)
206{ 206{
207 unsigned int len; 207 unsigned int len;
@@ -243,7 +243,7 @@ out:
243 * current timer interval. 243 * current timer interval.
244 */ 244 */
245static int 245static int
246appldata_interval_handler(ctl_table *ctl, int write, 246appldata_interval_handler(struct ctl_table *ctl, int write,
247 void __user *buffer, size_t *lenp, loff_t *ppos) 247 void __user *buffer, size_t *lenp, loff_t *ppos)
248{ 248{
249 unsigned int len; 249 unsigned int len;
@@ -287,7 +287,7 @@ out:
287 * monitoring (0 = not in process, 1 = in process) 287 * monitoring (0 = not in process, 1 = in process)
288 */ 288 */
289static int 289static int
290appldata_generic_handler(ctl_table *ctl, int write, 290appldata_generic_handler(struct ctl_table *ctl, int write,
291 void __user *buffer, size_t *lenp, loff_t *ppos) 291 void __user *buffer, size_t *lenp, loff_t *ppos)
292{ 292{
293 struct appldata_ops *ops = NULL, *tmp_ops; 293 struct appldata_ops *ops = NULL, *tmp_ops;
diff --git a/arch/s390/kernel/debug.c b/arch/s390/kernel/debug.c
index 17d62fe5d7b7..ee8390da6ea7 100644
--- a/arch/s390/kernel/debug.c
+++ b/arch/s390/kernel/debug.c
@@ -889,7 +889,7 @@ static int debug_active=1;
889 * if debug_active is already off 889 * if debug_active is already off
890 */ 890 */
891static int 891static int
892s390dbf_procactive(ctl_table *table, int write, 892s390dbf_procactive(struct ctl_table *table, int write,
893 void __user *buffer, size_t *lenp, loff_t *ppos) 893 void __user *buffer, size_t *lenp, loff_t *ppos)
894{ 894{
895 if (!write || debug_stoppable || !debug_active) 895 if (!write || debug_stoppable || !debug_active)
diff --git a/arch/s390/mm/cmm.c b/arch/s390/mm/cmm.c
index 76741306af2a..79ddd580d605 100644
--- a/arch/s390/mm/cmm.c
+++ b/arch/s390/mm/cmm.c
@@ -253,8 +253,8 @@ static int cmm_skip_blanks(char *cp, char **endp)
253 253
254static struct ctl_table cmm_table[]; 254static struct ctl_table cmm_table[];
255 255
256static int cmm_pages_handler(ctl_table *ctl, int write, void __user *buffer, 256static int cmm_pages_handler(struct ctl_table *ctl, int write,
257 size_t *lenp, loff_t *ppos) 257 void __user *buffer, size_t *lenp, loff_t *ppos)
258{ 258{
259 char buf[16], *p; 259 char buf[16], *p;
260 unsigned int len; 260 unsigned int len;
@@ -293,8 +293,8 @@ static int cmm_pages_handler(ctl_table *ctl, int write, void __user *buffer,
293 return 0; 293 return 0;
294} 294}
295 295
296static int cmm_timeout_handler(ctl_table *ctl, int write, void __user *buffer, 296static int cmm_timeout_handler(struct ctl_table *ctl, int write,
297 size_t *lenp, loff_t *ppos) 297 void __user *buffer, size_t *lenp, loff_t *ppos)
298{ 298{
299 char buf[64], *p; 299 char buf[64], *p;
300 long nr, seconds; 300 long nr, seconds;