diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-05-11 20:09:24 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-20 16:15:15 -0400 |
commit | 5853e22c58b318232fd6e15033ccb0852f865c0b (patch) | |
tree | 334d4d1072caa23efeff29a105c50d43637f2246 /net/batman-adv/bat_sysfs.h | |
parent | 40a072d777a4f417c0296e06f91297b0f3f2fa36 (diff) |
batman-adv: Prefix bat_sysfs non-static functions with batadv_
batman-adv can be compiled as part of the kernel instead of an module. In that
case the linker will see all non-static symbols of batman-adv and all other
non-static symbols of the kernel. This could lead to symbol collisions. A
prefix for the batman-adv symbols that defines their private namespace avoids
such a problem.
Reported-by: David Miller <davem@davemloft.net>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/bat_sysfs.h')
-rw-r--r-- | net/batman-adv/bat_sysfs.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/net/batman-adv/bat_sysfs.h b/net/batman-adv/bat_sysfs.h index fece77ae586e..f01aea836b98 100644 --- a/net/batman-adv/bat_sysfs.h +++ b/net/batman-adv/bat_sysfs.h | |||
@@ -34,11 +34,12 @@ struct bat_attribute { | |||
34 | char *buf, size_t count); | 34 | char *buf, size_t count); |
35 | }; | 35 | }; |
36 | 36 | ||
37 | int sysfs_add_meshif(struct net_device *dev); | 37 | int batadv_sysfs_add_meshif(struct net_device *dev); |
38 | void sysfs_del_meshif(struct net_device *dev); | 38 | void batadv_sysfs_del_meshif(struct net_device *dev); |
39 | int sysfs_add_hardif(struct kobject **hardif_obj, struct net_device *dev); | 39 | int batadv_sysfs_add_hardif(struct kobject **hardif_obj, |
40 | void sysfs_del_hardif(struct kobject **hardif_obj); | 40 | struct net_device *dev); |
41 | int throw_uevent(struct bat_priv *bat_priv, enum uev_type type, | 41 | void batadv_sysfs_del_hardif(struct kobject **hardif_obj); |
42 | enum uev_action action, const char *data); | 42 | int batadv_throw_uevent(struct bat_priv *bat_priv, enum uev_type type, |
43 | enum uev_action action, const char *data); | ||
43 | 44 | ||
44 | #endif /* _NET_BATMAN_ADV_SYSFS_H_ */ | 45 | #endif /* _NET_BATMAN_ADV_SYSFS_H_ */ |