From: Sven Eckelmann <sven@narfation.org>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: Silence checkpatch warnings about spinlocks
Date: Thu, 20 Jan 2011 06:22:55 +0100 [thread overview]
Message-ID: <1295500975-3884-2-git-send-email-sven@narfation.org> (raw)
In-Reply-To: <1295500975-3884-1-git-send-email-sven@narfation.org>
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
next prev parent reply other threads:[~2011-01-20 5:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2011-01-21 15:09 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: Silence checkpatch warnings about spinlocks 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1295500975-3884-2-git-send-email-sven@narfation.org \
--to=sven@narfation.org \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox