diff options
Diffstat (limited to 'arch/s390/appldata/appldata_base.c')
| -rw-r--r-- | arch/s390/appldata/appldata_base.c | 19 | 
1 files changed, 11 insertions, 8 deletions
diff --git a/arch/s390/appldata/appldata_base.c b/arch/s390/appldata/appldata_base.c index 87a22092b68..47c8630c93c 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;   * /proc entries (sysctl)   */  static const char appldata_proc_name[APPLDATA_PROC_NAME_LENGTH] = "appldata"; -static int appldata_timer_handler(ctl_table *ctl, int write, +static int appldata_timer_handler(struct ctl_table *ctl, int write,  				  void __user *buffer, size_t *lenp, loff_t *ppos); -static int appldata_interval_handler(ctl_table *ctl, int write, +static int appldata_interval_handler(struct ctl_table *ctl, int write,  					 void __user *buffer,  					 size_t *lenp, loff_t *ppos); @@ -201,10 +201,10 @@ static void __appldata_vtimer_setup(int cmd)   * Start/Stop timer, show status of timer (0 = not active, 1 = active)   */  static int -appldata_timer_handler(ctl_table *ctl, int write, +appldata_timer_handler(struct ctl_table *ctl, int write,  			   void __user *buffer, size_t *lenp, loff_t *ppos)  { -	int len; +	unsigned int len;  	char buf[2];  	if (!*lenp || *ppos) { @@ -243,10 +243,11 @@ out:   * current timer interval.   */  static int -appldata_interval_handler(ctl_table *ctl, int write, +appldata_interval_handler(struct ctl_table *ctl, int write,  			   void __user *buffer, size_t *lenp, loff_t *ppos)  { -	int len, interval; +	unsigned int len; +	int interval;  	char buf[16];  	if (!*lenp || *ppos) { @@ -286,11 +287,12 @@ out:   * monitoring (0 = not in process, 1 = in process)   */  static int -appldata_generic_handler(ctl_table *ctl, int write, +appldata_generic_handler(struct ctl_table *ctl, int write,  			   void __user *buffer, size_t *lenp, loff_t *ppos)  {  	struct appldata_ops *ops = NULL, *tmp_ops; -	int rc, len, found; +	unsigned int len; +	int rc, found;  	char buf[2];  	struct list_head *lh; @@ -527,6 +529,7 @@ static int __init appldata_init(void)  {  	int rc; +	init_virt_timer(&appldata_timer);  	appldata_timer.function = appldata_timer_function;  	appldata_timer.data = (unsigned long) &appldata_work;  | 
