Skip to contentSkip to conversation

batman-adv: Mark batadv_iv_neigh_print as static

PATCH Applied Sven Eckelmann 2 participants 2 messages Aug 8, 2015 – Aug 9, 2015 Batman advanced

lore
Share & tools
lore

Sven Eckelmann

author maintainer
#0 lore raw

PATCH 1/1 batman-adv: Mark batadv_iv_neigh_print as static

batadv_iv_neigh_print is not used outside of bat_iv_ogm.c and should thus be marked as static.

Fixes 2e1133841c44 ("batman-adv: export single hop neighbor list via debugfs")
---
 net/batman-adv/bat_iv_ogm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
net/batman-adv/bat_iv_ogm.c +2 -1
index 154e36a6f486..3738a2f0a03d 100644
@@ -1895,7 +1895,8 @@ batadv_iv_hardif_neigh_print(struct seq_file *seq,
  * @bat_priv: the bat priv with all the soft interface information
  * @seq: neighbour table seq_file struct
  */
-void batadv_iv_neigh_print(struct batadv_priv *bat_priv, struct seq_file *seq)
+static void batadv_iv_neigh_print(struct batadv_priv *bat_priv,
+				  struct seq_file *seq)
 {
 	struct net_device *net_dev = (struct net_device *)seq->private;
 	struct batadv_hardif_neigh_node *hardif_neigh;
Signature · 1 line
2.5.0
#1 lore raw
Quoted 8 lines · On Saturday, August 08, 2015 02:37:01 Sven Eckelmann wrote:

batadv_iv_neigh_print is not used outside of bat_iv_ogm.c and should thus be marked as static.

Fixes 2e1133841c44 ("batman-adv: export single hop neighbor list via

debugfs") Signed-off-by: Sven Eckelmann <[email protected]>

---
 net/batman-adv/bat_iv_ogm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Applied in revision a0f15fc.

Thanks,
Marek