Skip to content

Commit 1eda58b

Browse files
ecsvAntonio Quartulli
authored andcommitted
batman-adv: Prefix main 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 f0530ee commit 1eda58b

16 files changed

Lines changed: 414 additions & 395 deletions

‎net/batman-adv/bat_iv_ogm.c‎

Lines changed: 107 additions & 99 deletions
Large diffs are not rendered by default.

‎net/batman-adv/bat_sysfs.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -730,9 +730,9 @@ int batadv_throw_uevent(struct bat_priv *bat_priv, enum uev_type type,
730730
batadv_hardif_free_ref(primary_if);
731731

732732
if (ret)
733-
bat_dbg(DBG_BATMAN, bat_priv,
734-
"Impossible to send uevent for (%s,%s,%s) event (err: %d)\n",
735-
uev_type_str[type], uev_action_str[action],
736-
(action == UEV_DEL ? "NULL" : data), ret);
733+
batadv_dbg(DBG_BATMAN, bat_priv,
734+
"Impossible to send uevent for (%s,%s,%s) event (err: %d)\n",
735+
uev_type_str[type], uev_action_str[action],
736+
(action == UEV_DEL ? "NULL" : data), ret);
737737
return ret;
738738
}

‎net/batman-adv/bitarray.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ int batadv_bit_get_packet(void *priv, unsigned long *seq_bits,
6666
/* sequence number is much newer, probably missed a lot of packets */
6767
if ((seq_num_diff >= TQ_LOCAL_WINDOW_SIZE) &&
6868
(seq_num_diff < EXPECTED_SEQNO_RANGE)) {
69-
bat_dbg(DBG_BATMAN, bat_priv,
70-
"We missed a lot of packets (%i) !\n",
71-
seq_num_diff - 1);
69+
batadv_dbg(DBG_BATMAN, bat_priv,
70+
"We missed a lot of packets (%i) !\n",
71+
seq_num_diff - 1);
7272
bitmap_zero(seq_bits, TQ_LOCAL_WINDOW_SIZE);
7373
if (set_mark)
7474
batadv_set_bit(seq_bits, 0);
@@ -83,8 +83,8 @@ int batadv_bit_get_packet(void *priv, unsigned long *seq_bits,
8383
if ((seq_num_diff <= -TQ_LOCAL_WINDOW_SIZE) ||
8484
(seq_num_diff >= EXPECTED_SEQNO_RANGE)) {
8585

86-
bat_dbg(DBG_BATMAN, bat_priv,
87-
"Other host probably restarted!\n");
86+
batadv_dbg(DBG_BATMAN, bat_priv,
87+
"Other host probably restarted!\n");
8888

8989
bitmap_zero(seq_bits, TQ_LOCAL_WINDOW_SIZE);
9090
if (set_mark)

0 commit comments

Comments
 (0)