NET: Add debugging names to __RW_LOCK_UNLOCKED macros.
Subsystems (2)
PATCH 1/1 NET: Add debugging names to __RW_LOCK_UNLOCKED macros.
Signed-off-by Robert P. J. Day <[email protected]>
---
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(-)
net/ipv4/raw.c +1 -1
@@ -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)
net/ipv6/raw.c +1 -1
@@ -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
========================================================================
From: "Robert P. J. Day" <[email protected]>
Date: Sat, 15 Mar 2008 14:16:18 -0400 (EDT)
Quoted 1 line
Signed-off-by Robert P. J. Day <[email protected]>
Applied, thanks.