@@ -178,7 +178,7 @@ batadv_orig_node_vlan_new(struct batadv_orig_node *orig_node,
178178 * and queue for free after rcu grace period
179179 * @ref: kref pointer of the originator-vlan object
180180 */
181- static void batadv_orig_node_vlan_release (struct kref * ref )
181+ void batadv_orig_node_vlan_release (struct kref * ref )
182182{
183183 struct batadv_orig_node_vlan * orig_vlan ;
184184
@@ -187,16 +187,6 @@ static void batadv_orig_node_vlan_release(struct kref *ref)
187187 kfree_rcu (orig_vlan , rcu );
188188}
189189
190- /**
191- * batadv_orig_node_vlan_put() - decrement the refcounter and possibly release
192- * the originator-vlan object
193- * @orig_vlan: the originator-vlan object to release
194- */
195- void batadv_orig_node_vlan_put (struct batadv_orig_node_vlan * orig_vlan )
196- {
197- kref_put (& orig_vlan -> refcount , batadv_orig_node_vlan_release );
198- }
199-
200190/**
201191 * batadv_originator_init() - Initialize all originator structures
202192 * @bat_priv: the bat priv with all the soft interface information
@@ -232,7 +222,7 @@ int batadv_originator_init(struct batadv_priv *bat_priv)
232222 * free after rcu grace period
233223 * @ref: kref pointer of the neigh_ifinfo
234224 */
235- static void batadv_neigh_ifinfo_release (struct kref * ref )
225+ void batadv_neigh_ifinfo_release (struct kref * ref )
236226{
237227 struct batadv_neigh_ifinfo * neigh_ifinfo ;
238228
@@ -244,22 +234,12 @@ static void batadv_neigh_ifinfo_release(struct kref *ref)
244234 kfree_rcu (neigh_ifinfo , rcu );
245235}
246236
247- /**
248- * batadv_neigh_ifinfo_put() - decrement the refcounter and possibly release
249- * the neigh_ifinfo
250- * @neigh_ifinfo: the neigh_ifinfo object to release
251- */
252- void batadv_neigh_ifinfo_put (struct batadv_neigh_ifinfo * neigh_ifinfo )
253- {
254- kref_put (& neigh_ifinfo -> refcount , batadv_neigh_ifinfo_release );
255- }
256-
257237/**
258238 * batadv_hardif_neigh_release() - release hardif neigh node from lists and
259239 * queue for free after rcu grace period
260240 * @ref: kref pointer of the neigh_node
261241 */
262- static void batadv_hardif_neigh_release (struct kref * ref )
242+ void batadv_hardif_neigh_release (struct kref * ref )
263243{
264244 struct batadv_hardif_neigh_node * hardif_neigh ;
265245
@@ -274,22 +254,12 @@ static void batadv_hardif_neigh_release(struct kref *ref)
274254 kfree_rcu (hardif_neigh , rcu );
275255}
276256
277- /**
278- * batadv_hardif_neigh_put() - decrement the hardif neighbors refcounter
279- * and possibly release it
280- * @hardif_neigh: hardif neigh neighbor to free
281- */
282- void batadv_hardif_neigh_put (struct batadv_hardif_neigh_node * hardif_neigh )
283- {
284- kref_put (& hardif_neigh -> refcount , batadv_hardif_neigh_release );
285- }
286-
287257/**
288258 * batadv_neigh_node_release() - release neigh_node from lists and queue for
289259 * free after rcu grace period
290260 * @ref: kref pointer of the neigh_node
291261 */
292- static void batadv_neigh_node_release (struct kref * ref )
262+ void batadv_neigh_node_release (struct kref * ref )
293263{
294264 struct hlist_node * node_tmp ;
295265 struct batadv_neigh_node * neigh_node ;
@@ -309,16 +279,6 @@ static void batadv_neigh_node_release(struct kref *ref)
309279 kfree_rcu (neigh_node , rcu );
310280}
311281
312- /**
313- * batadv_neigh_node_put() - decrement the neighbors refcounter and possibly
314- * release it
315- * @neigh_node: neigh neighbor to free
316- */
317- void batadv_neigh_node_put (struct batadv_neigh_node * neigh_node )
318- {
319- kref_put (& neigh_node -> refcount , batadv_neigh_node_release );
320- }
321-
322282/**
323283 * batadv_orig_router_get() - router to the originator depending on iface
324284 * @orig_node: the orig node for the router
@@ -851,7 +811,7 @@ int batadv_hardif_neigh_dump(struct sk_buff *msg, struct netlink_callback *cb)
851811 * free after rcu grace period
852812 * @ref: kref pointer of the orig_ifinfo
853813 */
854- static void batadv_orig_ifinfo_release (struct kref * ref )
814+ void batadv_orig_ifinfo_release (struct kref * ref )
855815{
856816 struct batadv_orig_ifinfo * orig_ifinfo ;
857817 struct batadv_neigh_node * router ;
@@ -869,16 +829,6 @@ static void batadv_orig_ifinfo_release(struct kref *ref)
869829 kfree_rcu (orig_ifinfo , rcu );
870830}
871831
872- /**
873- * batadv_orig_ifinfo_put() - decrement the refcounter and possibly release
874- * the orig_ifinfo
875- * @orig_ifinfo: the orig_ifinfo object to release
876- */
877- void batadv_orig_ifinfo_put (struct batadv_orig_ifinfo * orig_ifinfo )
878- {
879- kref_put (& orig_ifinfo -> refcount , batadv_orig_ifinfo_release );
880- }
881-
882832/**
883833 * batadv_orig_node_free_rcu() - free the orig_node
884834 * @rcu: rcu pointer of the orig_node
@@ -902,7 +852,7 @@ static void batadv_orig_node_free_rcu(struct rcu_head *rcu)
902852 * free after rcu grace period
903853 * @ref: kref pointer of the orig_node
904854 */
905- static void batadv_orig_node_release (struct kref * ref )
855+ void batadv_orig_node_release (struct kref * ref )
906856{
907857 struct hlist_node * node_tmp ;
908858 struct batadv_neigh_node * neigh_node ;
@@ -948,16 +898,6 @@ static void batadv_orig_node_release(struct kref *ref)
948898 call_rcu (& orig_node -> rcu , batadv_orig_node_free_rcu );
949899}
950900
951- /**
952- * batadv_orig_node_put() - decrement the orig node refcounter and possibly
953- * release it
954- * @orig_node: the orig node to free
955- */
956- void batadv_orig_node_put (struct batadv_orig_node * orig_node )
957- {
958- kref_put (& orig_node -> refcount , batadv_orig_node_release );
959- }
960-
961901/**
962902 * batadv_originator_free() - Free all originator structures
963903 * @bat_priv: the bat priv with all the soft interface information
0 commit comments