batman-adv: Mark batadv_hardif_neigh_free_now as static
Sven Eckelmann
maintainerPATCH 1/1 batman-adv: Mark batadv_hardif_neigh_free_now as static
batadv_hardif_neigh_free_now is not used outside of originator.c and should thus be marked as static.
Fixes fed2826b490c ("batman-adv: add list of unique single hop neighbors per hard-interface")
Signed-off-by Sven Eckelmann <[email protected]>
--- net/batman-adv/originator.c | 3 ++- net/batman-adv/originator.h | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-)
net/batman-adv/originator.c +2 -1
@@ -224,7 +224,8 @@ static void batadv_hardif_neigh_free_rcu(struct rcu_head *rcu)* and possibly free it (without rcu callback) * @hardif_neigh: hardif neigh neighbor to free */ -void batadv_hardif_neigh_free_now (struct batadv_hardif_neigh_node *hardif_neigh) +static void +batadv_hardif_neigh_free_now (struct batadv_hardif_neigh_node *hardif_neigh) {if (atomic_dec_and_test (&hardif_neigh->refcount))batadv_hardif_neigh_free_rcu (&hardif_neigh->rcu);
net/batman-adv/originator.h +0 -2
@@ -46,8 +46,6 @@ batadv_hardif_neigh_get(const struct batadv_hard_iface *hard_iface, const u8 *neigh_addr);void batadv_hardif_neigh_free_ref (struct batadv_hardif_neigh_node *hardif_neigh); -void -batadv_hardif_neigh_free_now (struct batadv_hardif_neigh_node *hardif_neigh);struct batadv_neigh_node * batadv_neigh_node_new(struct batadv_orig_node *orig_node, struct batadv_hard_iface *hard_iface,
Signature · 1 line
2.5.0
Marek Lindner
AppliedQuoted 9 lines · On Saturday, August 08, 2015 02:46:45 Sven Eckelmann wrote:
batadv_hardif_neigh_free_nowis not used outside oforiginator.cand should thus be marked as static.Fixes fed2826b490c ("batman-adv: add list of unique single hop neighborsper hard-interface") Signed-off-by: Sven Eckelmann <[email protected]>
--- net/batman-adv/originator.c | 3 ++- net/batman-adv/originator.h | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-)
Applied in revision e821b76.
Thanks,
Marek