diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-05-11 20:09:39 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-20 16:15:29 -0400 |
commit | 08c36d3e8ad1f73d3b0322842363b23f6d203630 (patch) | |
tree | 9190100a886c18956fee193acbd8fd160060bc19 /net/batman-adv/bat_debugfs.c | |
parent | 04b482a21aaf22cf5b327fb6a3fba6fdc8cb3de9 (diff) |
batman-adv: Prefix translation-table 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.c')
-rw-r--r-- | net/batman-adv/bat_debugfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/bat_debugfs.c b/net/batman-adv/bat_debugfs.c index 51b67f4a064..93cc0d14c70 100644 --- a/net/batman-adv/bat_debugfs.c +++ b/net/batman-adv/bat_debugfs.c | |||
@@ -242,7 +242,7 @@ static int gateways_open(struct inode *inode, struct file *file) | |||
242 | static int transtable_global_open(struct inode *inode, struct file *file) | 242 | static int transtable_global_open(struct inode *inode, struct file *file) |
243 | { | 243 | { |
244 | struct net_device *net_dev = (struct net_device *)inode->i_private; | 244 | struct net_device *net_dev = (struct net_device *)inode->i_private; |
245 | return single_open(file, tt_global_seq_print_text, net_dev); | 245 | return single_open(file, batadv_tt_global_seq_print_text, net_dev); |
246 | } | 246 | } |
247 | 247 | ||
248 | #ifdef CONFIG_BATMAN_ADV_BLA | 248 | #ifdef CONFIG_BATMAN_ADV_BLA |
@@ -257,7 +257,7 @@ static int bla_claim_table_open(struct inode *inode, struct file *file) | |||
257 | static int transtable_local_open(struct inode *inode, struct file *file) | 257 | static int transtable_local_open(struct inode *inode, struct file *file) |
258 | { | 258 | { |
259 | struct net_device *net_dev = (struct net_device *)inode->i_private; | 259 | struct net_device *net_dev = (struct net_device *)inode->i_private; |
260 | return single_open(file, tt_local_seq_print_text, net_dev); | 260 | return single_open(file, batadv_tt_local_seq_print_text, net_dev); |
261 | } | 261 | } |
262 | 262 | ||
263 | static int vis_data_open(struct inode *inode, struct file *file) | 263 | static int vis_data_open(struct inode *inode, struct file *file) |