@@ -177,7 +177,7 @@ batadv_orig_node_vlan_new(struct batadv_orig_node *orig_node,
177177 * and queue for free after rcu grace period
178178 * @ref: kref pointer of the originator-vlan object
179179 */
180- static void batadv_orig_node_vlan_release (struct kref * ref )
180+ void batadv_orig_node_vlan_release (struct kref * ref )
181181{
182182 struct batadv_orig_node_vlan * orig_vlan ;
183183
@@ -186,16 +186,6 @@ static void batadv_orig_node_vlan_release(struct kref *ref)
186186 kfree_rcu (orig_vlan , rcu );
187187}
188188
189- /**
190- * batadv_orig_node_vlan_put() - decrement the refcounter and possibly release
191- * the originator-vlan object
192- * @orig_vlan: the originator-vlan object to release
193- */
194- void batadv_orig_node_vlan_put (struct batadv_orig_node_vlan * orig_vlan )
195- {
196- kref_put (& orig_vlan -> refcount , batadv_orig_node_vlan_release );
197- }
198-
199189/**
200190 * batadv_originator_init() - Initialize all originator structures
201191 * @bat_priv: the bat priv with all the soft interface information
@@ -231,7 +221,7 @@ int batadv_originator_init(struct batadv_priv *bat_priv)
231221 * free after rcu grace period
232222 * @ref: kref pointer of the neigh_ifinfo
233223 */
234- static void batadv_neigh_ifinfo_release (struct kref * ref )
224+ void batadv_neigh_ifinfo_release (struct kref * ref )
235225{
236226 struct batadv_neigh_ifinfo * neigh_ifinfo ;
237227
@@ -243,22 +233,12 @@ static void batadv_neigh_ifinfo_release(struct kref *ref)
243233 kfree_rcu (neigh_ifinfo , rcu );
244234}
245235
246- /**
247- * batadv_neigh_ifinfo_put() - decrement the refcounter and possibly release
248- * the neigh_ifinfo
249- * @neigh_ifinfo: the neigh_ifinfo object to release
250- */
251- void batadv_neigh_ifinfo_put (struct batadv_neigh_ifinfo * neigh_ifinfo )
252- {
253- kref_put (& neigh_ifinfo -> refcount , batadv_neigh_ifinfo_release );
254- }
255-
256236/**
257237 * batadv_hardif_neigh_release() - release hardif neigh node from lists and
258238 * queue for free after rcu grace period
259239 * @ref: kref pointer of the neigh_node
260240 */
261- static void batadv_hardif_neigh_release (struct kref * ref )
241+ void batadv_hardif_neigh_release (struct kref * ref )
262242{
263243 struct batadv_hardif_neigh_node * hardif_neigh ;
264244
@@ -273,22 +253,12 @@ static void batadv_hardif_neigh_release(struct kref *ref)
273253 kfree_rcu (hardif_neigh , rcu );
274254}
275255
276- /**
277- * batadv_hardif_neigh_put() - decrement the hardif neighbors refcounter
278- * and possibly release it
279- * @hardif_neigh: hardif neigh neighbor to free
280- */
281- void batadv_hardif_neigh_put (struct batadv_hardif_neigh_node * hardif_neigh )
282- {
283- kref_put (& hardif_neigh -> refcount , batadv_hardif_neigh_release );
284- }
285-
286256/**
287257 * batadv_neigh_node_release() - release neigh_node from lists and queue for
288258 * free after rcu grace period
289259 * @ref: kref pointer of the neigh_node
290260 */
291- static void batadv_neigh_node_release (struct kref * ref )
261+ void batadv_neigh_node_release (struct kref * ref )
292262{
293263 struct hlist_node * node_tmp ;
294264 struct batadv_neigh_node * neigh_node ;
@@ -308,16 +278,6 @@ static void batadv_neigh_node_release(struct kref *ref)
308278 kfree_rcu (neigh_node , rcu );
309279}
310280
311- /**
312- * batadv_neigh_node_put() - decrement the neighbors refcounter and possibly
313- * release it
314- * @neigh_node: neigh neighbor to free
315- */
316- void batadv_neigh_node_put (struct batadv_neigh_node * neigh_node )
317- {
318- kref_put (& neigh_node -> refcount , batadv_neigh_node_release );
319- }
320-
321281/**
322282 * batadv_orig_router_get() - router to the originator depending on iface
323283 * @orig_node: the orig node for the router
@@ -812,7 +772,7 @@ int batadv_hardif_neigh_dump(struct sk_buff *msg, struct netlink_callback *cb)
812772 * free after rcu grace period
813773 * @ref: kref pointer of the orig_ifinfo
814774 */
815- static void batadv_orig_ifinfo_release (struct kref * ref )
775+ void batadv_orig_ifinfo_release (struct kref * ref )
816776{
817777 struct batadv_orig_ifinfo * orig_ifinfo ;
818778 struct batadv_neigh_node * router ;
@@ -830,16 +790,6 @@ static void batadv_orig_ifinfo_release(struct kref *ref)
830790 kfree_rcu (orig_ifinfo , rcu );
831791}
832792
833- /**
834- * batadv_orig_ifinfo_put() - decrement the refcounter and possibly release
835- * the orig_ifinfo
836- * @orig_ifinfo: the orig_ifinfo object to release
837- */
838- void batadv_orig_ifinfo_put (struct batadv_orig_ifinfo * orig_ifinfo )
839- {
840- kref_put (& orig_ifinfo -> refcount , batadv_orig_ifinfo_release );
841- }
842-
843793/**
844794 * batadv_orig_node_free_rcu() - free the orig_node
845795 * @rcu: rcu pointer of the orig_node
@@ -863,7 +813,7 @@ static void batadv_orig_node_free_rcu(struct rcu_head *rcu)
863813 * free after rcu grace period
864814 * @ref: kref pointer of the orig_node
865815 */
866- static void batadv_orig_node_release (struct kref * ref )
816+ void batadv_orig_node_release (struct kref * ref )
867817{
868818 struct hlist_node * node_tmp ;
869819 struct batadv_neigh_node * neigh_node ;
@@ -909,16 +859,6 @@ static void batadv_orig_node_release(struct kref *ref)
909859 call_rcu (& orig_node -> rcu , batadv_orig_node_free_rcu );
910860}
911861
912- /**
913- * batadv_orig_node_put() - decrement the orig node refcounter and possibly
914- * release it
915- * @orig_node: the orig node to free
916- */
917- void batadv_orig_node_put (struct batadv_orig_node * orig_node )
918- {
919- kref_put (& orig_node -> refcount , batadv_orig_node_release );
920- }
921-
922862/**
923863 * batadv_originator_free() - Free all originator structures
924864 * @bat_priv: the bat priv with all the soft interface information
0 commit comments