X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fs390%2Fappldata%2Fappldata_base.c;h=d957683d6165aec1f8e9cf8c13375ed33dcfac0e;hb=1341115471cc16954510b0e67295468f5a32b088;hp=3589f48ded47520b9de50b523b302d3e8187838c;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/arch/s390/appldata/appldata_base.c b/arch/s390/appldata/appldata_base.c index 3589f48de..d957683d6 100644 --- a/arch/s390/appldata/appldata_base.c +++ b/arch/s390/appldata/appldata_base.c @@ -17,7 +17,6 @@ #include #include #include -#include #include #include #include @@ -88,11 +87,11 @@ struct appldata_parameter_list { */ static const char appldata_proc_name[APPLDATA_PROC_NAME_LENGTH] = "appldata"; static int appldata_timer_handler(ctl_table *ctl, int write, struct file *filp, - void __user *buffer, size_t *lenp, loff_t *ppos); + void __user *buffer, size_t *lenp); static int appldata_interval_handler(ctl_table *ctl, int write, struct file *filp, void __user *buffer, - size_t *lenp, loff_t *ppos); + size_t *lenp); static struct ctl_table_header *appldata_sysctl_header; static struct ctl_table appldata_table[] = { @@ -315,12 +314,12 @@ __appldata_vtimer_setup(int cmd) */ static int appldata_timer_handler(ctl_table *ctl, int write, struct file *filp, - void __user *buffer, size_t *lenp, loff_t *ppos) + void __user *buffer, size_t *lenp) { int len; char buf[2]; - if (!*lenp || *ppos) { + if (!*lenp || filp->f_pos) { *lenp = 0; return 0; } @@ -343,7 +342,7 @@ appldata_timer_handler(ctl_table *ctl, int write, struct file *filp, spin_unlock(&appldata_timer_lock); out: *lenp = len; - *ppos += len; + filp->f_pos += len; return 0; } @@ -355,12 +354,12 @@ out: */ static int appldata_interval_handler(ctl_table *ctl, int write, struct file *filp, - void __user *buffer, size_t *lenp, loff_t *ppos) + void __user *buffer, size_t *lenp) { int len, interval; char buf[16]; - if (!*lenp || *ppos) { + if (!*lenp || filp->f_pos) { *lenp = 0; return 0; } @@ -391,7 +390,7 @@ appldata_interval_handler(ctl_table *ctl, int write, struct file *filp, interval); out: *lenp = len; - *ppos += len; + filp->f_pos += len; return 0; } @@ -403,7 +402,7 @@ out: */ static int appldata_generic_handler(ctl_table *ctl, int write, struct file *filp, - void __user *buffer, size_t *lenp, loff_t *ppos) + void __user *buffer, size_t *lenp) { struct appldata_ops *ops = NULL, *tmp_ops; int rc, len, found; @@ -429,7 +428,7 @@ appldata_generic_handler(ctl_table *ctl, int write, struct file *filp, } spin_unlock_bh(&appldata_ops_lock); - if (!*lenp || *ppos) { + if (!*lenp || filp->f_pos) { *lenp = 0; module_put(ops->owner); return 0; @@ -488,7 +487,7 @@ appldata_generic_handler(ctl_table *ctl, int write, struct file *filp, spin_unlock_bh(&appldata_ops_lock); out: *lenp = len; - *ppos += len; + filp->f_pos += len; module_put(ops->owner); return 0; }