public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] NET: Add debugging names to __RW_LOCK_UNLOCKED macros.
@ 2008-03-15 18:16 Robert P. J. Day
  2008-03-18  8:00 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Robert P. J. Day @ 2008-03-15 18:16 UTC (permalink / raw)
  To: netdev


Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>

---

  not compile tested, but this is a fairly straightforward change.

 net/ipv4/raw.c |    2 +-
 net/ipv6/raw.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c
index a3002fe..e10ef6c 100644
--- a/net/ipv4/raw.c
+++ b/net/ipv4/raw.c
@@ -81,7 +81,7 @@
 #include <linux/netfilter_ipv4.h>

 static struct raw_hashinfo raw_v4_hashinfo = {
-	.lock = __RW_LOCK_UNLOCKED(),
+	.lock = __RW_LOCK_UNLOCKED(raw_v4_hashinfo.lock),
 };

 void raw_hash_sk(struct sock *sk, struct raw_hashinfo *h)
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c
index 8897ccf..d6afa02 100644
--- a/net/ipv6/raw.c
+++ b/net/ipv6/raw.c
@@ -62,7 +62,7 @@
 #include <linux/seq_file.h>

 static struct raw_hashinfo raw_v6_hashinfo = {
-	.lock = __RW_LOCK_UNLOCKED(),
+	.lock = __RW_LOCK_UNLOCKED(raw_v6_hashinfo.lock),
 };

 static void raw_v6_hash(struct sock *sk)
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
    Have classroom, will lecture.

http://crashcourse.ca                          Waterloo, Ontario, CANADA
========================================================================

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

end of thread, other threads:[~2008-03-18  7:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-15 18:16 [PATCH] NET: Add debugging names to __RW_LOCK_UNLOCKED macros Robert P. J. Day
2008-03-18  8:00 ` David Miller

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