diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-05-11 20:09:31 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-20 16:15:20 -0400 |
commit | 9563877ea52ea18bb4f1ed724c5e3a39bbbcf60b (patch) | |
tree | 56bd2312e4aa7d04b448edd1d8ed87309c941f80 /net/batman-adv/translation-table.c | |
parent | 84d5e5e003752bc56b413f8d2c3fcfeeec066145 (diff) |
batman-adv: Prefix hard-interface 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/translation-table.c')
-rw-r--r-- | net/batman-adv/translation-table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c index bb8557ea30f1..7324b89bf731 100644 --- a/net/batman-adv/translation-table.c +++ b/net/batman-adv/translation-table.c | |||
@@ -221,7 +221,7 @@ void tt_local_add(struct net_device *soft_iface, const uint8_t *addr, | |||
221 | 221 | ||
222 | memcpy(tt_local_entry->common.addr, addr, ETH_ALEN); | 222 | memcpy(tt_local_entry->common.addr, addr, ETH_ALEN); |
223 | tt_local_entry->common.flags = NO_FLAGS; | 223 | tt_local_entry->common.flags = NO_FLAGS; |
224 | if (is_wifi_iface(ifindex)) | 224 | if (batadv_is_wifi_iface(ifindex)) |
225 | tt_local_entry->common.flags |= TT_CLIENT_WIFI; | 225 | tt_local_entry->common.flags |= TT_CLIENT_WIFI; |
226 | atomic_set(&tt_local_entry->common.refcount, 2); | 226 | atomic_set(&tt_local_entry->common.refcount, 2); |
227 | tt_local_entry->last_seen = jiffies; | 227 | tt_local_entry->last_seen = jiffies; |