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 Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com> Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
25477f2398
commit
eb169d1cc7
@@ -225,7 +225,7 @@ static struct bat_attribute *mesh_attrs[] = {
|
|||||||
NULL,
|
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,
|
struct bin_attribute *bin_attr,
|
||||||
char *buff, loff_t off, size_t count)
|
char *buff, loff_t off, size_t count)
|
||||||
{
|
{
|
||||||
@@ -235,7 +235,7 @@ static ssize_t transtable_local_read(struct kobject *kobj,
|
|||||||
return hna_local_fill_buffer_text(net_dev, buff, count, off);
|
return hna_local_fill_buffer_text(net_dev, buff, count, off);
|
||||||
}
|
}
|
||||||
|
|
||||||
static ssize_t transtable_global_read(struct kobject *kobj,
|
static ssize_t transtable_global_read(struct file *filp, struct kobject *kobj,
|
||||||
struct bin_attribute *bin_attr,
|
struct bin_attribute *bin_attr,
|
||||||
char *buff, loff_t off, size_t count)
|
char *buff, loff_t off, size_t count)
|
||||||
{
|
{
|
||||||
@@ -245,7 +245,7 @@ static ssize_t transtable_global_read(struct kobject *kobj,
|
|||||||
return hna_global_fill_buffer_text(net_dev, buff, count, off);
|
return hna_global_fill_buffer_text(net_dev, buff, count, off);
|
||||||
}
|
}
|
||||||
|
|
||||||
static ssize_t originators_read(struct kobject *kobj,
|
static ssize_t originators_read(struct file *filp, struct kobject *kobj,
|
||||||
struct bin_attribute *bin_attr,
|
struct bin_attribute *bin_attr,
|
||||||
char *buff, loff_t off, size_t count)
|
char *buff, loff_t off, size_t count)
|
||||||
{
|
{
|
||||||
@@ -255,7 +255,7 @@ static ssize_t originators_read(struct kobject *kobj,
|
|||||||
return orig_fill_buffer_text(net_dev, buff, count, off);
|
return orig_fill_buffer_text(net_dev, buff, count, off);
|
||||||
}
|
}
|
||||||
|
|
||||||
static ssize_t vis_data_read(struct kobject *kobj,
|
static ssize_t vis_data_read(struct file *filp, struct kobject *kobj,
|
||||||
struct bin_attribute *bin_attr,
|
struct bin_attribute *bin_attr,
|
||||||
char *buff, loff_t off, size_t count)
|
char *buff, loff_t off, size_t count)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user