Skip to contentSkip to conversation

batman-adv: make batadv_softif_destroy_netlink() static

PATCH Applied Antonio Quartulli 2 participants 2 messages Feb 16, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 batman-adv: make batadv_softif_destroy_netlink() static

batadv_softif_destroy_netlink() is used in the file where it is defined only, therefore it must be static.

Introduced by 5317331775c3168b8155b03ec89b1c4c508b9043 ("batman-adv: Allow to use rntl_link for device creation/deletion")

---
 soft-interface.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
soft-interface.c +2 -2
index 39caefa..403b8c4 100644
@@ -653,8 +653,8 @@ void batadv_softif_destroy_sysfs(struct net_device *soft_iface)
  * @soft_iface: the to-be-removed batman-adv interface
  * @head: list pointer
  */
-void batadv_softif_destroy_netlink(struct net_device *soft_iface,
-				   struct list_head *head)
+static void batadv_softif_destroy_netlink(struct net_device *soft_iface,
+					  struct list_head *head)
 {
 	struct batadv_hard_iface *hard_iface;
 
Signature · 1 line
1.8.1.2
#1 lore raw
Quoted 10 lines · On Saturday, February 16, 2013 20:50:52 Antonio Quartulli wrote:

batadv_softif_destroy_netlink() is used in the file where it is defined only, therefore it must be static.

Introduced by 5317331775c3168b8155b03ec89b1c4c508b9043 ("batman-adv: Allow to use rntl_link for device creation/deletion")

---
 soft-interface.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Applied in revision 17d1d49.

Thanks,
Marek