Skip to content

Commit 302bfe2

Browse files
JoePerchesMartin Schwidefsky
authored andcommitted
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>
1 parent cb4deb6 commit 302bfe2

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎arch/s390/appldata/appldata_base.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ static struct platform_device *appldata_pdev;
4848
* /proc entries (sysctl)
4949
*/
5050
static const char appldata_proc_name[APPLDATA_PROC_NAME_LENGTH] = "appldata";
51-
static int appldata_timer_handler(ctl_table *ctl, int write,
51+
static int appldata_timer_handler(struct ctl_table *ctl, int write,
5252
void __user *buffer, size_t *lenp, loff_t *ppos);
53-
static int appldata_interval_handler(ctl_table *ctl, int write,
53+
static int appldata_interval_handler(struct ctl_table *ctl, int write,
5454
void __user *buffer,
5555
size_t *lenp, loff_t *ppos);
5656

@@ -201,7 +201,7 @@ static void __appldata_vtimer_setup(int cmd)
201201
* Start/Stop timer, show status of timer (0 = not active, 1 = active)
202202
*/
203203
static int
204-
appldata_timer_handler(ctl_table *ctl, int write,
204+
appldata_timer_handler(struct ctl_table *ctl, int write,
205205
void __user *buffer, size_t *lenp, loff_t *ppos)
206206
{
207207
unsigned int len;
@@ -243,7 +243,7 @@ appldata_timer_handler(ctl_table *ctl, int write,
243243
* current timer interval.
244244
*/
245245
static int
246-
appldata_interval_handler(ctl_table *ctl, int write,
246+
appldata_interval_handler(struct ctl_table *ctl, int write,
247247
void __user *buffer, size_t *lenp, loff_t *ppos)
248248
{
249249
unsigned int len;
@@ -287,7 +287,7 @@ appldata_interval_handler(ctl_table *ctl, int write,
287287
* monitoring (0 = not in process, 1 = in process)
288288
*/
289289
static int
290-
appldata_generic_handler(ctl_table *ctl, int write,
290+
appldata_generic_handler(struct ctl_table *ctl, int write,
291291
void __user *buffer, size_t *lenp, loff_t *ppos)
292292
{
293293
struct appldata_ops *ops = NULL, *tmp_ops;

‎arch/s390/kernel/debug.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ static int debug_active=1;
889889
* if debug_active is already off
890890
*/
891891
static int
892-
s390dbf_procactive(ctl_table *table, int write,
892+
s390dbf_procactive(struct ctl_table *table, int write,
893893
void __user *buffer, size_t *lenp, loff_t *ppos)
894894
{
895895
if (!write || debug_stoppable || !debug_active)

‎arch/s390/mm/cmm.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ static int cmm_skip_blanks(char *cp, char **endp)
253253

254254
static struct ctl_table cmm_table[];
255255

256-
static int cmm_pages_handler(ctl_table *ctl, int write, void __user *buffer,
257-
size_t *lenp, loff_t *ppos)
256+
static int cmm_pages_handler(struct ctl_table *ctl, int write,
257+
void __user *buffer, size_t *lenp, loff_t *ppos)
258258
{
259259
char buf[16], *p;
260260
unsigned int len;
@@ -293,8 +293,8 @@ static int cmm_pages_handler(ctl_table *ctl, int write, void __user *buffer,
293293
return 0;
294294
}
295295

296-
static int cmm_timeout_handler(ctl_table *ctl, int write, void __user *buffer,
297-
size_t *lenp, loff_t *ppos)
296+
static int cmm_timeout_handler(struct ctl_table *ctl, int write,
297+
void __user *buffer, size_t *lenp, loff_t *ppos)
298298
{
299299
char buf[64], *p;
300300
long nr, seconds;

0 commit comments

Comments
 (0)