You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
batman-adv: Prefix originator 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>
This commit is contained in:
committed by
Antonio Quartulli
parent
9039dc7e8a
commit
7d211efc50
@@ -399,7 +399,7 @@ static struct backbone_gw *bla_get_backbone_gw(struct bat_priv *bat_priv,
|
||||
if (orig_node) {
|
||||
tt_global_del_orig(bat_priv, orig_node,
|
||||
"became a backbone gateway");
|
||||
orig_node_free_ref(orig_node);
|
||||
batadv_orig_node_free_ref(orig_node);
|
||||
}
|
||||
return entry;
|
||||
}
|
||||
@@ -804,7 +804,7 @@ static int check_claim_group(struct bat_priv *bat_priv,
|
||||
bla_dst_own->group = bla_dst->group;
|
||||
}
|
||||
|
||||
orig_node_free_ref(orig_node);
|
||||
batadv_orig_node_free_ref(orig_node);
|
||||
|
||||
return 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user