drivers/staging/batman-adv: fix function prototype
Subsystems (2)
PATCH 1/1 drivers/staging/batman-adv: fix function prototype
In today linux-next I got a compile warning in staging/batman-adv.
This is due a struct bin_attribute read function prototype change and the driver was not updated.
This patch solves the issue
--- drivers/staging/batman-adv/bat_sysfs.c | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-)
drivers/staging/batman-adv/bat_sysfs.c +12 -12
@@ -225,9 +225,9 @@ static struct bat_attribute *mesh_attrs[] = { NULL, }; -static ssize_t transtable_local_read (struct kobject *kobj, -struct bin_attribute *bin_attr, -char *buff,loff_t off,size_t count) +static ssize_t transtable_local_read (struct file *filp,struct kobject *kobj, +struct bin_attribute *bin_attr, +char *buff,loff_t off,size_t count) {struct device *dev =to_dev (kobj->parent);struct net_device *net_dev =to_net_dev (dev);
@@ -235,9 +235,9 @@ static ssize_t transtable_local_read(struct kobject *kobj,return hna_local_fill_buffer_text (net_dev, buff, count, off); } -static ssize_t transtable_global_read (struct kobject *kobj, -struct bin_attribute *bin_attr, -char *buff,loff_t off,size_t count) +static ssize_t transtable_global_read (struct file *filp,struct kobject *kobj, +struct bin_attribute *bin_attr, +char *buff,loff_t off,size_t count) {struct device *dev =to_dev (kobj->parent);struct net_device *net_dev =to_net_dev (dev);
@@ -245,9 +245,9 @@ static ssize_t transtable_global_read(struct kobject *kobj,return hna_global_fill_buffer_text (net_dev, buff, count, off); } -static ssize_t originators_read (struct kobject *kobj, -struct bin_attribute *bin_attr, -char *buff,loff_t off,size_t count) +static ssize_t originators_read (struct file *filp,struct kobject *kobj, +struct bin_attribute *bin_attr, +char *buff,loff_t off,size_t count) {struct device *dev =to_dev (kobj->parent);struct net_device *net_dev =to_net_dev (dev);
@@ -255,9 +255,9 @@ static ssize_t originators_read(struct kobject *kobj,return orig_fill_buffer_text (net_dev, buff, count, off); } -static ssize_t vis_data_read (struct kobject *kobj, -struct bin_attribute *bin_attr, -char *buff,loff_t off,size_t count) +static ssize_t vis_data_read (struct file *filp,struct kobject *kobj, +struct bin_attribute *bin_attr, +char *buff,loff_t off,size_t count) {struct device *dev =to_dev (kobj->parent);struct net_device *net_dev =to_net_dev (dev);
Signature · 1 line
1.7.0.4
Quoted 9 lines · On Sunday 06 June 2010 03:23:28 you wrote:
In today linux-next I got a compile warning in staging/batman-adv.
This is due a struct
bin_attributeread function prototype change and the driver was not updated.This patch solves the issue
Signed-off-by Javier Martinez Canillas <[email protected]>---
[...]
Quoted 2 lines
-static
ssize_ttranstable_local_read(struct kobject *kobj,
[...]
Quoted 2 lines
-static
ssize_ttranstable_global_read(struct kobject *kobj,
[...]
Quoted 2 lines
-static
ssize_toriginators_read(struct kobject *kobj,
[...]
Quoted 2 lines
-static
ssize_tvis_data_read(struct kobject *kobj,
[...]
These files were already removed and the patch is waiting in GregKH's queue.
Best regards,
Sven
Quoted 18 lines · Sven Eckelmann
Quoted 9 lines · On Sunday 06 June 2010 03:23:28 you wrote:
In today linux-next I got a compile warning in staging/batman-adv.
This is due a struct
bin_attributeread function prototype change and the driver was not updated.This patch solves the issue
Signed-off-by Javier Martinez Canillas <[email protected]>---
[...]
Quoted 2 lines
-static
ssize_ttranstable_local_read(struct kobject *kobj,[...]
Quoted 2 lines
-static
ssize_ttranstable_global_read(struct kobject *kobj,[...]
Quoted 1 line
Quoted 7 lines
Quoted 1 line
-static
ssize_toriginators_read(struct kobject *kobj,[...]
Quoted 2 lines
-static
ssize_tvis_data_read(struct kobject *kobj,[...]
These files were already removed and the patch is waiting in GregKH's queue.
Hm, but those files are not going to be removed until 2.6.36, right? So I think we need this patch now to keep 2.6.35 working properly. Or am I mistaken?
thanks,
greg k-h
Quoted 22 lines · Greg KH
Quoted 21 lines · Sven Eckelmann
Quoted 9 lines · On Sunday 06 June 2010 03:23:28 you wrote:
In today linux-next I got a compile warning in staging/batman-adv.
This is due a struct
bin_attributeread function prototype change and the driver was not updated.This patch solves the issue
Signed-off-by Javier Martinez Canillas <[email protected]>---
[...]
Quoted 2 lines
-static
ssize_ttranstable_local_read(struct kobject *kobj,[...]
Quoted 2 lines
-static
ssize_ttranstable_global_read(struct kobject *kobj,[...]
Quoted 2 lines
-static
ssize_toriginators_read(struct kobject *kobj,[...]
Quoted 1 line
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
-static
ssize_tvis_data_read(struct kobject *kobj,[...]
These files were already removed and the patch is waiting in GregKH's queue.
Hm, but those files are not going to be removed until 2.6.36, right? So I think we need this patch now to keep 2.6.35 working properly. Or am I mistaken?
No, this is correct. I just wanted to write a short notice... but it was a little bit too short.
Situation:
* Files were removed (actually moved to debugfs) for 2.6.36
* patches for that were already send to Greg
* this patch conflicts with at least one patch we already sent
How it was (hopefully) resolved:
* this and another patch was applied in our repo in a special 2.6.35 branch
* our debugfs patches (and patches we send at the same time) were rebased
* new patches for 2.6.35 and again _all_ patches for 2.6.36 were send to Greg some days ago
I hope that it is ok for Greg. Otherwise he would have to fix the merge conflicts - extra work which (at least I think) isn't is duty. I am not happy about the resubmission, but maybe we find a good way to coordinate the submission of patches a little bit better.
And forgot also to thank Javier - it seems that I completely missed that change or it came at the same time we submitted out things to Greg (not sure about that - but in case of doubt, just say that it was my fault).
Best regards,
Sven
Quoted 46 lines · Sven Eckelmann
Quoted 22 lines · Greg KH
Quoted 21 lines · Sven Eckelmann
Quoted 9 lines · On Sunday 06 June 2010 03:23:28 you wrote:
In today linux-next I got a compile warning in staging/batman-adv.
This is due a struct
bin_attributeread function prototype change and the driver was not updated.This patch solves the issue
Signed-off-by Javier Martinez Canillas <[email protected]>---
[...]
Quoted 2 lines
-static
ssize_ttranstable_local_read(struct kobject *kobj,[...]
Quoted 2 lines
-static
ssize_ttranstable_global_read(struct kobject *kobj,[...]
Quoted 2 lines
-static
ssize_toriginators_read(struct kobject *kobj,[...]
Quoted 1 line
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
-static
ssize_tvis_data_read(struct kobject *kobj,[...]
These files were already removed and the patch is waiting in GregKH's queue.
Hm, but those files are not going to be removed until 2.6.36, right? So I think we need this patch now to keep 2.6.35 working properly. Or am I mistaken?
No, this is correct. I just wanted to write a short notice... but it was a little bit too short.
Situation:
* Files were removed (actually moved to debugfs) for 2.6.36
* patches for that were already send to Greg
* this patch conflicts with at least one patch we already sentHow it was (hopefully) resolved:
* this and another patch was applied in our repo in a special 2.6.35 branch
* our debugfs patches (and patches we send at the same time) were rebased
* new patches for 2.6.35 and again _all_ patches for 2.6.36 were send to Greg some days ago
Quoted 4 lines
I hope that it is ok for Greg. Otherwise he would have to fix the merge conflicts - extra work which (at least I think) isn't is duty. I am not happy about the resubmission, but maybe we find a good way to coordinate the submission of patches a little bit better.
That's fine, you did great here, I will queue your patches up for .36 and the fixes for .35. merge conflicts are my job to handle :)
thanks,
greg k-h