batman-adv: Remove unused compat function batadv_free_rcu_softif_vlan
The commit e78c16c0550c ("batman-adv: Revert "fix var name to keep compatibility with old kernels"") should have renamed the function to batadv_free_rcu_softif_vlan instead of adding a new function batadv_free_rcu_vlan because it was only used in this single place.
---
This patch is complete optional and would only silence a build_test warning until the master branch becomes the next branch. But this would create a merge conflict because batadv_free_rcu_softif_vlan is already removed in master.
--- compat.c | 9 --------- compat.h | 1 - 2 files changed, 10 deletions(-)
compat.c +0 -9
@@ -33,15 +33,6 @@ void batadv_free_rcu_orig_vlan(struct rcu_head *rcu)kfree (vlan); } -void batadv_free_rcu_softif_vlan (struct rcu_head *rcu) -{ -struct batadv_softif_vlan *vlan; - - vlan = container_of(rcu, struct batadv_softif_vlan, rcu); - -kfree (vlan); -} -void batadv_free_rcu_vlan (struct rcu_head *rcu) {struct batadv_softif_vlan *vlan;
compat.h +0 -1
@@ -226,7 +226,6 @@ static const struct { \#define vlan_insert_tag (skb, proto, vid) __vlan_put_tag(skb, vid)void batadv_free_rcu_orig_vlan (struct rcu_head *rcu); -void batadv_free_rcu_softif_vlan (struct rcu_head *rcu);void batadv_free_rcu_tt_global_entry (struct rcu_head *rcu);void batadv_free_rcu_gw_node (struct rcu_head *rcu);void batadv_free_rcu_tt_local_entry (struct rcu_head *rcu);
Signature · 1 line
2.1.4
Antonio Quartulli
Acked-byQuoted 5 lines · Sven Eckelmann
The commit
e78c16c0550c("batman-adv: Revert "fix var name to keep compatibility with old kernels"") should have renamed the function tobatadv_free_rcu_softif_vlaninstead of adding a new functionbatadv_free_rcu_vlanbecause it was only used in this single place.
Thanks Sven, I suspected that, but I thought that this *softif_vlan* function was used somewhere else.
Quoted 1 line
Signed-off-by Sven Eckelmann <[email protected]>
Marek, if you don't think we will merge master into next soon, I'd suggest we merge this patch and reduce the noise of the build check.
Cheers,
Signature · 1 line
Antonio Quartulli
Quoted 11 lines · On Wednesday 22 April 2015 21:12:42 Sven Eckelmann wrote:
The commit
e78c16c0550c("batman-adv: Revert "fix var name to keep compatibility with old kernels"") should have renamed the function tobatadv_free_rcu_softif_vlaninstead of adding a new functionbatadv_free_rcu_vlanbecause it was only used in this single place.Signed-off-by Sven Eckelmann <[email protected]>---
This patch is complete optional and would only silence abuild_testwarning until the master branch becomes the next branch. But this would create a merge conflict becausebatadv_free_rcu_softif_vlanis already removed in master.
Just as hint: If only this patch is new in next and you want to merge then you could merge by ignoring the changes in next to avoid the merge conflict:
git merge -s ours next
Kind regards,
Sven