diff options
author | Sven Eckelmann | 2012-05-12 02:09:29 +0200 |
---|---|---|
committer | Antonio Quartulli | 2012-06-20 22:15:18 +0200 |
commit | 7cf06bc6ff810178a7fb9f12aaa6b274fc520f6f (patch) | |
tree | d2155e204af6153174f9a7f37596c21e04c65ddb /net/batman-adv/bat_debugfs.c | |
parent | batman-adv: Prefix bridge_loop_avoidance non-static functions with batadv_ (diff) | |
download | kernel-qcow2-linux-7cf06bc6ff810178a7fb9f12aaa6b274fc520f6f.tar.gz kernel-qcow2-linux-7cf06bc6ff810178a7fb9f12aaa6b274fc520f6f.tar.xz kernel-qcow2-linux-7cf06bc6ff810178a7fb9f12aaa6b274fc520f6f.zip |
batman-adv: Prefix gateway-client 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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/bat_debugfs.c b/net/batman-adv/bat_debugfs.c index 71b225c1b5ca..7b294b431f88 100644 --- a/net/batman-adv/bat_debugfs.c +++ b/net/batman-adv/bat_debugfs.c @@ -236,7 +236,7 @@ static int originators_open(struct inode *inode, struct file *file) static int gateways_open(struct inode *inode, struct file *file) { struct net_device *net_dev = (struct net_device *)inode->i_private; - return single_open(file, gw_client_seq_print_text, net_dev); + return single_open(file, batadv_gw_client_seq_print_text, net_dev); } static int transtable_global_open(struct inode *inode, struct file *file) |