public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH maint 1/2] batman-adv: fix alignment
@ 2014-05-15  9:08 Antonio Quartulli
  2014-05-15  9:08 ` [B.A.T.M.A.N.] [PATCH maint 2/2] batman-adv: fix var name to keep compatibility with old kernels Antonio Quartulli
  2014-05-15 18:55 ` [B.A.T.M.A.N.] [PATCH maint 1/2] batman-adv: fix alignment Marek Lindner
  0 siblings, 2 replies; 4+ messages in thread
From: Antonio Quartulli @ 2014-05-15  9:08 UTC (permalink / raw)
  To: b.a.t.m.a.n; +Cc: Antonio Quartulli

Introduced by 9729d2085c0fa4398eb1ee518b0097866dfdcd77
("batman-adv: fix TT VLAN inconsistency on VLAN re-add")

Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
---
 soft-interface.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/soft-interface.c b/soft-interface.c
index 5a9dc2f..82804e7 100644
--- a/soft-interface.c
+++ b/soft-interface.c
@@ -594,8 +594,8 @@ static int batadv_interface_add_vid(struct net_device *dev, __be16 proto,
 	 * exists, because the entry was deleted by kill_vid()
 	 */
 	batadv_tt_local_add(bat_priv->soft_iface,
-			     bat_priv->soft_iface->dev_addr, vid,
-			     BATADV_NULL_IFINDEX, BATADV_NO_MARK);
+			    bat_priv->soft_iface->dev_addr, vid,
+			    BATADV_NULL_IFINDEX, BATADV_NO_MARK);
 
 	return 0;
 }
-- 
1.8.5.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [B.A.T.M.A.N.] [PATCH maint 2/2] batman-adv: fix var name to keep compatibility with old kernels
  2014-05-15  9:08 [B.A.T.M.A.N.] [PATCH maint 1/2] batman-adv: fix alignment Antonio Quartulli
@ 2014-05-15  9:08 ` Antonio Quartulli
  2014-05-15 18:57   ` Marek Lindner
  2014-05-15 18:55 ` [B.A.T.M.A.N.] [PATCH maint 1/2] batman-adv: fix alignment Marek Lindner
  1 sibling, 1 reply; 4+ messages in thread
From: Antonio Quartulli @ 2014-05-15  9:08 UTC (permalink / raw)
  To: b.a.t.m.a.n; +Cc: Antonio Quartulli

The first argument of kfree_rcu() is used in compat.h to forge
a function name used by old kernels. Keep it as it was before
to avoid breaking this compat mechanism.

Introduced by 9729d2085c0fa4398eb1ee518b0097866dfdcd77
("batman-adv: fix TT VLAN inconsistency on VLAN re-add")

Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
---
 soft-interface.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/soft-interface.c b/soft-interface.c
index 82804e7..a4e6e5e 100644
--- a/soft-interface.c
+++ b/soft-interface.c
@@ -437,14 +437,14 @@ out:
  *  possibly free it
  * @softif_vlan: the vlan object to release
  */
-void batadv_softif_vlan_free_ref(struct batadv_softif_vlan *vlan)
+void batadv_softif_vlan_free_ref(struct batadv_softif_vlan *softif_vlan)
 {
-	if (atomic_dec_and_test(&vlan->refcount)) {
-		spin_lock_bh(&vlan->bat_priv->softif_vlan_list_lock);
-		hlist_del_rcu(&vlan->list);
-		spin_unlock_bh(&vlan->bat_priv->softif_vlan_list_lock);
+	if (atomic_dec_and_test(&softif_vlan->refcount)) {
+		spin_lock_bh(&softif_vlan->bat_priv->softif_vlan_list_lock);
+		hlist_del_rcu(&softif_vlan->list);
+		spin_unlock_bh(&softif_vlan->bat_priv->softif_vlan_list_lock);
 
-		kfree_rcu(vlan, rcu);
+		kfree_rcu(softif_vlan, rcu);
 	}
 }
 
-- 
1.8.5.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [B.A.T.M.A.N.] [PATCH maint 1/2] batman-adv: fix alignment
  2014-05-15  9:08 [B.A.T.M.A.N.] [PATCH maint 1/2] batman-adv: fix alignment Antonio Quartulli
  2014-05-15  9:08 ` [B.A.T.M.A.N.] [PATCH maint 2/2] batman-adv: fix var name to keep compatibility with old kernels Antonio Quartulli
@ 2014-05-15 18:55 ` Marek Lindner
  1 sibling, 0 replies; 4+ messages in thread
From: Marek Lindner @ 2014-05-15 18:55 UTC (permalink / raw)
  To: b.a.t.m.a.n; +Cc: Antonio Quartulli

[-- Attachment #1: Type: text/plain, Size: 368 bytes --]

On Thursday 15 May 2014 11:08:06 Antonio Quartulli wrote:
> Introduced by 9729d2085c0fa4398eb1ee518b0097866dfdcd77
> ("batman-adv: fix TT VLAN inconsistency on VLAN re-add")
> 
> Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
> ---
>  soft-interface.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied in revision bc089ef.

Thanks,
Marek

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [B.A.T.M.A.N.] [PATCH maint 2/2] batman-adv: fix var name to keep compatibility with old kernels
  2014-05-15  9:08 ` [B.A.T.M.A.N.] [PATCH maint 2/2] batman-adv: fix var name to keep compatibility with old kernels Antonio Quartulli
@ 2014-05-15 18:57   ` Marek Lindner
  0 siblings, 0 replies; 4+ messages in thread
From: Marek Lindner @ 2014-05-15 18:57 UTC (permalink / raw)
  To: b.a.t.m.a.n; +Cc: Antonio Quartulli

[-- Attachment #1: Type: text/plain, Size: 552 bytes --]

On Thursday 15 May 2014 11:08:07 Antonio Quartulli wrote:
> The first argument of kfree_rcu() is used in compat.h to forge
> a function name used by old kernels. Keep it as it was before
> to avoid breaking this compat mechanism.
> 
> Introduced by 9729d2085c0fa4398eb1ee518b0097866dfdcd77
> ("batman-adv: fix TT VLAN inconsistency on VLAN re-add")
> 
> Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
> ---
>  soft-interface.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)

Applied in revision b539153.

Thanks,
Marek

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-05-15 18:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-15  9:08 [B.A.T.M.A.N.] [PATCH maint 1/2] batman-adv: fix alignment Antonio Quartulli
2014-05-15  9:08 ` [B.A.T.M.A.N.] [PATCH maint 2/2] batman-adv: fix var name to keep compatibility with old kernels Antonio Quartulli
2014-05-15 18:57   ` Marek Lindner
2014-05-15 18:55 ` [B.A.T.M.A.N.] [PATCH maint 1/2] batman-adv: fix alignment Marek Lindner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox