Dan Carpenter wrote: > The attribute callbacks take a file pointer these days. This was added > in 2c3c8bea60 "sysfs: add struct file* to bin_attr callbacks" > > Signed-off-by: Dan Carpenter <error27@xxxxxxxxx> > > diff --git a/drivers/staging/batman-adv/bat_sysfs.c > b/drivers/staging/batman-adv/bat_sysfs.c index e2c000b..8891373 100644 > --- a/drivers/staging/batman-adv/bat_sysfs.c > +++ b/drivers/staging/batman-adv/bat_sysfs.c > @@ -225,7 +225,7 @@ static struct bat_attribute *mesh_attrs[] = { > NULL, > }; > > -static ssize_t transtable_local_read(struct kobject *kobj, > +static ssize_t transtable_local_read(struct file *filp, struct kobject > *kobj, struct bin_attribute *bin_attr, [..] This was already changed by Javier Martinez Canillas 10 days ago. Greg has already merged it in one of his trees [1]. If you want then you can check if staging-batman-adv-fix-function-prototype.patch really does the same thing. thanks, Sven [1] http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/
Attachment:
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel