diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-05-11 20:09:38 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-20 16:15:28 -0400 |
commit | 04b482a21aaf22cf5b327fb6a3fba6fdc8cb3de9 (patch) | |
tree | 4035e2c89d47a961045c01d98d7bb4588478b86a /net/batman-adv/unicast.c | |
parent | 9455e34cb2ded22e01abb6daa65ba1caeed8d7fe (diff) |
batman-adv: Prefix soft-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/unicast.c')
-rw-r--r-- | net/batman-adv/unicast.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/batman-adv/unicast.c b/net/batman-adv/unicast.c index 6bb3bb9f843f..52179c8ae9bd 100644 --- a/net/batman-adv/unicast.c +++ b/net/batman-adv/unicast.c | |||
@@ -242,8 +242,8 @@ int frag_send_skb(struct sk_buff *skb, struct bat_priv *bat_priv, | |||
242 | memcpy(&tmp_uc, unicast_packet, uc_hdr_len); | 242 | memcpy(&tmp_uc, unicast_packet, uc_hdr_len); |
243 | skb_split(skb, frag_skb, data_len / 2 + uc_hdr_len); | 243 | skb_split(skb, frag_skb, data_len / 2 + uc_hdr_len); |
244 | 244 | ||
245 | if (my_skb_head_push(skb, ucf_hdr_len - uc_hdr_len) < 0 || | 245 | if (batadv_skb_head_push(skb, ucf_hdr_len - uc_hdr_len) < 0 || |
246 | my_skb_head_push(frag_skb, ucf_hdr_len) < 0) | 246 | batadv_skb_head_push(frag_skb, ucf_hdr_len) < 0) |
247 | goto drop_frag; | 247 | goto drop_frag; |
248 | 248 | ||
249 | frag1 = (struct unicast_frag_packet *)skb->data; | 249 | frag1 = (struct unicast_frag_packet *)skb->data; |
@@ -314,7 +314,7 @@ find_router: | |||
314 | if (!neigh_node) | 314 | if (!neigh_node) |
315 | goto out; | 315 | goto out; |
316 | 316 | ||
317 | if (my_skb_head_push(skb, sizeof(*unicast_packet)) < 0) | 317 | if (batadv_skb_head_push(skb, sizeof(*unicast_packet)) < 0) |
318 | goto out; | 318 | goto out; |
319 | 319 | ||
320 | unicast_packet = (struct unicast_packet *)skb->data; | 320 | unicast_packet = (struct unicast_packet *)skb->data; |