diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-06-05 16:31:29 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-07-01 16:47:21 -0400 |
commit | b4d66b877bc21ce907938bfd027dfe016617fac0 (patch) | |
tree | 2e871c35e9b079f24b5867034e08831b2c605195 /net/batman-adv | |
parent | 5bf74e9ca1e618afe5a513f64ee4923115e67004 (diff) |
batman-adv: Prefix local sysfs struct with batadv_
Reported-by: Martin Hundebøll <martin@hundeboll.net>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv')
-rw-r--r-- | net/batman-adv/bat_sysfs.c | 12 | ||||
-rw-r--r-- | net/batman-adv/bat_sysfs.h | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/net/batman-adv/bat_sysfs.c b/net/batman-adv/bat_sysfs.c index c4794c6edf2f..eb17629a78bc 100644 --- a/net/batman-adv/bat_sysfs.c +++ b/net/batman-adv/bat_sysfs.c | |||
@@ -54,7 +54,7 @@ static char *batadv_uev_type_str[] = { | |||
54 | 54 | ||
55 | /* Use this, if you have customized show and store functions */ | 55 | /* Use this, if you have customized show and store functions */ |
56 | #define BATADV_ATTR(_name, _mode, _show, _store) \ | 56 | #define BATADV_ATTR(_name, _mode, _show, _store) \ |
57 | struct bat_attribute batadv_attr_##_name = { \ | 57 | struct batadv_attribute batadv_attr_##_name = { \ |
58 | .attr = {.name = __stringify(_name), \ | 58 | .attr = {.name = __stringify(_name), \ |
59 | .mode = _mode }, \ | 59 | .mode = _mode }, \ |
60 | .show = _show, \ | 60 | .show = _show, \ |
@@ -488,7 +488,7 @@ static BATADV_ATTR(gw_bandwidth, S_IRUGO | S_IWUSR, batadv_show_gw_bwidth, | |||
488 | BATADV_ATTR_SIF_UINT(log_level, S_IRUGO | S_IWUSR, 0, BATADV_DBG_ALL, NULL); | 488 | BATADV_ATTR_SIF_UINT(log_level, S_IRUGO | S_IWUSR, 0, BATADV_DBG_ALL, NULL); |
489 | #endif | 489 | #endif |
490 | 490 | ||
491 | static struct bat_attribute *batadv_mesh_attrs[] = { | 491 | static struct batadv_attribute *batadv_mesh_attrs[] = { |
492 | &batadv_attr_aggregated_ogms, | 492 | &batadv_attr_aggregated_ogms, |
493 | &batadv_attr_bonding, | 493 | &batadv_attr_bonding, |
494 | #ifdef CONFIG_BATMAN_ADV_BLA | 494 | #ifdef CONFIG_BATMAN_ADV_BLA |
@@ -513,7 +513,7 @@ int batadv_sysfs_add_meshif(struct net_device *dev) | |||
513 | { | 513 | { |
514 | struct kobject *batif_kobject = &dev->dev.kobj; | 514 | struct kobject *batif_kobject = &dev->dev.kobj; |
515 | struct bat_priv *bat_priv = netdev_priv(dev); | 515 | struct bat_priv *bat_priv = netdev_priv(dev); |
516 | struct bat_attribute **bat_attr; | 516 | struct batadv_attribute **bat_attr; |
517 | int err; | 517 | int err; |
518 | 518 | ||
519 | bat_priv->mesh_obj = kobject_create_and_add(BATADV_SYSFS_IF_MESH_SUBDIR, | 519 | bat_priv->mesh_obj = kobject_create_and_add(BATADV_SYSFS_IF_MESH_SUBDIR, |
@@ -550,7 +550,7 @@ out: | |||
550 | void batadv_sysfs_del_meshif(struct net_device *dev) | 550 | void batadv_sysfs_del_meshif(struct net_device *dev) |
551 | { | 551 | { |
552 | struct bat_priv *bat_priv = netdev_priv(dev); | 552 | struct bat_priv *bat_priv = netdev_priv(dev); |
553 | struct bat_attribute **bat_attr; | 553 | struct batadv_attribute **bat_attr; |
554 | 554 | ||
555 | for (bat_attr = batadv_mesh_attrs; *bat_attr; ++bat_attr) | 555 | for (bat_attr = batadv_mesh_attrs; *bat_attr; ++bat_attr) |
556 | sysfs_remove_file(bat_priv->mesh_obj, &((*bat_attr)->attr)); | 556 | sysfs_remove_file(bat_priv->mesh_obj, &((*bat_attr)->attr)); |
@@ -677,7 +677,7 @@ static BATADV_ATTR(mesh_iface, S_IRUGO | S_IWUSR, batadv_show_mesh_iface, | |||
677 | batadv_store_mesh_iface); | 677 | batadv_store_mesh_iface); |
678 | static BATADV_ATTR(iface_status, S_IRUGO, batadv_show_iface_status, NULL); | 678 | static BATADV_ATTR(iface_status, S_IRUGO, batadv_show_iface_status, NULL); |
679 | 679 | ||
680 | static struct bat_attribute *batadv_batman_attrs[] = { | 680 | static struct batadv_attribute *batadv_batman_attrs[] = { |
681 | &batadv_attr_mesh_iface, | 681 | &batadv_attr_mesh_iface, |
682 | &batadv_attr_iface_status, | 682 | &batadv_attr_iface_status, |
683 | NULL, | 683 | NULL, |
@@ -686,7 +686,7 @@ static struct bat_attribute *batadv_batman_attrs[] = { | |||
686 | int batadv_sysfs_add_hardif(struct kobject **hardif_obj, struct net_device *dev) | 686 | int batadv_sysfs_add_hardif(struct kobject **hardif_obj, struct net_device *dev) |
687 | { | 687 | { |
688 | struct kobject *hardif_kobject = &dev->dev.kobj; | 688 | struct kobject *hardif_kobject = &dev->dev.kobj; |
689 | struct bat_attribute **bat_attr; | 689 | struct batadv_attribute **bat_attr; |
690 | int err; | 690 | int err; |
691 | 691 | ||
692 | *hardif_obj = kobject_create_and_add(BATADV_SYSFS_IF_BAT_SUBDIR, | 692 | *hardif_obj = kobject_create_and_add(BATADV_SYSFS_IF_BAT_SUBDIR, |
diff --git a/net/batman-adv/bat_sysfs.h b/net/batman-adv/bat_sysfs.h index 28c2948d6a6a..88f95f817c4d 100644 --- a/net/batman-adv/bat_sysfs.h +++ b/net/batman-adv/bat_sysfs.h | |||
@@ -23,7 +23,7 @@ | |||
23 | #define BATADV_SYSFS_IF_MESH_SUBDIR "mesh" | 23 | #define BATADV_SYSFS_IF_MESH_SUBDIR "mesh" |
24 | #define BATADV_SYSFS_IF_BAT_SUBDIR "batman_adv" | 24 | #define BATADV_SYSFS_IF_BAT_SUBDIR "batman_adv" |
25 | 25 | ||
26 | struct bat_attribute { | 26 | struct batadv_attribute { |
27 | struct attribute attr; | 27 | struct attribute attr; |
28 | ssize_t (*show)(struct kobject *kobj, struct attribute *attr, | 28 | ssize_t (*show)(struct kobject *kobj, struct attribute *attr, |
29 | char *buf); | 29 | char *buf); |