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 1/2] batman-adv: Mark bucket_free_orig_rcu as static
@ 2011-01-20  5:22 Sven Eckelmann
  2011-01-20  5:22 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: Silence checkpatch warnings about spinlocks Sven Eckelmann
  2011-01-21 15:08 ` [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: Mark bucket_free_orig_rcu as static Marek Lindner
  0 siblings, 2 replies; 4+ messages in thread
From: Sven Eckelmann @ 2011-01-20  5:22 UTC (permalink / raw)
  To: b.a.t.m.a.n

Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
 batman-adv/originator.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/batman-adv/originator.c b/batman-adv/originator.c
index 35ab3ab..5a6745f 100644
--- a/batman-adv/originator.c
+++ b/batman-adv/originator.c
@@ -179,7 +179,7 @@ void originator_free(struct bat_priv *bat_priv)
 	hash_destroy(hash);
 }
 
-void bucket_free_orig_rcu(struct rcu_head *rcu)
+static void bucket_free_orig_rcu(struct rcu_head *rcu)
 {
 	struct element_t *bucket;
 	struct orig_node *orig_node;
-- 
1.7.2.3


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

* [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: Silence checkpatch warnings about spinlocks
  2011-01-20  5:22 [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: Mark bucket_free_orig_rcu as static Sven Eckelmann
@ 2011-01-20  5:22 ` Sven Eckelmann
  2011-01-21 15:09   ` Marek Lindner
  2011-01-21 15:08 ` [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: Mark bucket_free_orig_rcu as static Marek Lindner
  1 sibling, 1 reply; 4+ messages in thread
From: Sven Eckelmann @ 2011-01-20  5:22 UTC (permalink / raw)
  To: b.a.t.m.a.n

Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
 batman-adv/hash.h       |    4 ++--
 batman-adv/originator.c |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/batman-adv/hash.h b/batman-adv/hash.h
index d47735c..a975e07 100644
--- a/batman-adv/hash.h
+++ b/batman-adv/hash.h
@@ -70,7 +70,7 @@ static inline void hash_delete(struct hashtable_t *hash,
 	struct hlist_head *head;
 	struct hlist_node *walk, *safe;
 	struct element_t *bucket;
-	spinlock_t *list_lock;
+	spinlock_t *list_lock; /* spinlock to protect write access */
 	int i;
 
 	for (i = 0; i < hash->size; i++) {
@@ -100,7 +100,7 @@ static inline int hash_add(struct hashtable_t *hash,
 	struct hlist_head *head;
 	struct hlist_node *walk, *safe;
 	struct element_t *bucket;
-	spinlock_t *list_lock;
+	spinlock_t *list_lock; /* spinlock to protect write access */
 
 	if (!hash)
 		goto err;
diff --git a/batman-adv/originator.c b/batman-adv/originator.c
index 5a6745f..cf2ec37 100644
--- a/batman-adv/originator.c
+++ b/batman-adv/originator.c
@@ -150,7 +150,7 @@ void originator_free(struct bat_priv *bat_priv)
 	struct hlist_node *walk, *safe;
 	struct hlist_head *head;
 	struct element_t *bucket;
-	spinlock_t *list_lock;
+	spinlock_t *list_lock; /* spinlock to protect write access */
 	struct orig_node *orig_node;
 	int i;
 
@@ -353,7 +353,7 @@ static void _purge_orig(struct bat_priv *bat_priv)
 	struct hlist_node *walk, *safe;
 	struct hlist_head *head;
 	struct element_t *bucket;
-	spinlock_t *list_lock;
+	spinlock_t *list_lock; /* spinlock to protect write access */
 	struct orig_node *orig_node;
 	int i;
 
-- 
1.7.2.3


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

* Re: [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: Mark bucket_free_orig_rcu as static
  2011-01-20  5:22 [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: Mark bucket_free_orig_rcu as static Sven Eckelmann
  2011-01-20  5:22 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: Silence checkpatch warnings about spinlocks Sven Eckelmann
@ 2011-01-21 15:08 ` Marek Lindner
  1 sibling, 0 replies; 4+ messages in thread
From: Marek Lindner @ 2011-01-21 15:08 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

On Thursday 20 January 2011 06:22:54 Sven Eckelmann wrote:
> -void bucket_free_orig_rcu(struct rcu_head *rcu)
> +static void bucket_free_orig_rcu(struct rcu_head *rcu)
>  {
>  	struct element_t *bucket;
>  	struct orig_node *orig_node;

Applied in revision 1910.

Thanks,
Marek

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

* Re: [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: Silence checkpatch warnings about spinlocks
  2011-01-20  5:22 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: Silence checkpatch warnings about spinlocks Sven Eckelmann
@ 2011-01-21 15:09   ` Marek Lindner
  0 siblings, 0 replies; 4+ messages in thread
From: Marek Lindner @ 2011-01-21 15:09 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

On Thursday 20 January 2011 06:22:55 Sven Eckelmann wrote:
> @@ -353,7 +353,7 @@ static void _purge_orig(struct bat_priv *bat_priv)
>         struct hlist_node *walk, *safe;
>         struct hlist_head *head;
>         struct element_t *bucket;
> -       spinlock_t *list_lock;
> +       spinlock_t *list_lock; /* spinlock to protect write access */
>         struct orig_node *orig_node;
>         int i;

Applied in version 1911.

Thanks,
Marek

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

end of thread, other threads:[~2011-01-21 15:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-20  5:22 [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: Mark bucket_free_orig_rcu as static Sven Eckelmann
2011-01-20  5:22 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: Silence checkpatch warnings about spinlocks Sven Eckelmann
2011-01-21 15:09   ` Marek Lindner
2011-01-21 15:08 ` [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: Mark bucket_free_orig_rcu as static Marek Lindner

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