Skip to content

Commit f0530ee

Browse files
ecsvAntonio Quartulli
authored andcommitted
batman-adv: Prefix unicast static inline functions with batadv_
All non-static symbols of batman-adv were prefixed with batadv_ to avoid collisions with other symbols of the kernel. Other symbols of batman-adv should use the same prefix to keep the naming scheme consistent. Signed-off-by: Sven Eckelmann <sven@narfation.org>
1 parent da64119 commit f0530ee

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎net/batman-adv/routing.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,8 @@ static int route_unicast_packet(struct sk_buff *skb, struct hard_iface *recv_if)
869869
}
870870

871871
if (unicast_packet->header.packet_type == BAT_UNICAST_FRAG &&
872-
frag_can_reassemble(skb, neigh_node->if_incoming->net_dev->mtu)) {
872+
batadv_frag_can_reassemble(skb,
873+
neigh_node->if_incoming->net_dev->mtu)) {
873874

874875
ret = batadv_frag_reassemble_skb(skb, bat_priv, &new_skb);
875876

‎net/batman-adv/unicast.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ int batadv_frag_send_skb(struct sk_buff *skb, struct bat_priv *bat_priv,
3333
struct hard_iface *hard_iface,
3434
const uint8_t dstaddr[]);
3535

36-
static inline int frag_can_reassemble(const struct sk_buff *skb, int mtu)
36+
static inline int batadv_frag_can_reassemble(const struct sk_buff *skb, int mtu)
3737
{
3838
const struct unicast_frag_packet *unicast_packet;
3939
int uneven_correction = 0;

0 commit comments

Comments
 (0)