diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-05-12 02:09:23 +0200 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-20 22:15:14 +0200 |
commit | 40a072d777a4f417c0296e06f91297b0f3f2fa36 (patch) | |
tree | 1490957336c2873cd3ec5e586927e92bc3e9a17a /net/batman-adv/bat_debugfs.h | |
parent | 81c524f76a353a19097e004ec05e4d62fd0bd57e (diff) | |
download | lwn-40a072d777a4f417c0296e06f91297b0f3f2fa36.tar.gz lwn-40a072d777a4f417c0296e06f91297b0f3f2fa36.zip |
batman-adv: Prefix bat_debugfs 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_debugfs.h')
-rw-r--r-- | net/batman-adv/bat_debugfs.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/batman-adv/bat_debugfs.h b/net/batman-adv/bat_debugfs.h index d605c6746428..3b206c811263 100644 --- a/net/batman-adv/bat_debugfs.h +++ b/net/batman-adv/bat_debugfs.h @@ -25,9 +25,9 @@ #define DEBUGFS_BAT_SUBDIR "batman_adv" -void debugfs_init(void); -void debugfs_destroy(void); -int debugfs_add_meshif(struct net_device *dev); -void debugfs_del_meshif(struct net_device *dev); +void batadv_debugfs_init(void); +void batadv_debugfs_destroy(void); +int batadv_debugfs_add_meshif(struct net_device *dev); +void batadv_debugfs_del_meshif(struct net_device *dev); #endif /* _NET_BATMAN_ADV_DEBUGFS_H_ */ |