Skip to contentSkip to conversation

NETFILTER: Use non-deprecated __RW_LOCK_UNLOCKED macro.

PATCH Applied Robert P. J. Day 2 participants 2 messages Mar 15, 2008 – Mar 20, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NETFILTER: Use non-deprecated __RW_LOCK_UNLOCKED macro.

---

not compile tested, but fairly obvious, no?

 net/bridge/netfilter/ebtable_broute.c |    2 +-
 net/bridge/netfilter/ebtable_filter.c |    2 +-
 net/bridge/netfilter/ebtable_nat.c    |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
net/bridge/netfilter/ebtable_broute.c +1 -1
index be6f186..246626b 100644
@@ -46,7 +46,7 @@ static struct ebt_table broute_table =
 	.name		= "broute",
 	.table		= &initial_table,
 	.valid_hooks	= 1 << NF_BR_BROUTING,
-	.lock		= RW_LOCK_UNLOCKED,
+	.lock		= __RW_LOCK_UNLOCKED(broute_table.lock),
 	.check		= check,
 	.me		= THIS_MODULE,
 };
net/bridge/netfilter/ebtable_filter.c +1 -1
index fb81090..690bc3a 100644
@@ -55,7 +55,7 @@ static struct ebt_table frame_filter =
 	.name		= "filter",
 	.table		= &initial_table,
 	.valid_hooks	= FILTER_VALID_HOOKS,
-	.lock		= RW_LOCK_UNLOCKED,
+	.lock		= __RW_LOCK_UNLOCKED(frame_filter.lock),
 	.check		= check,
 	.me		= THIS_MODULE,
 };
net/bridge/netfilter/ebtable_nat.c +1 -1
index bc71273..5b495fe 100644
@@ -55,7 +55,7 @@ static struct ebt_table frame_nat =
 	.name		= "nat",
 	.table		= &initial_table,
 	.valid_hooks	= NAT_VALID_HOOKS,
-	.lock		= RW_LOCK_UNLOCKED,
+	.lock		= __RW_LOCK_UNLOCKED(frame_nat.lock),
 	.check		= check,
 	.me		= THIS_MODULE,
 };

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.

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