[NETFILTER]: Use non-deprecated __RW_LOCK_UNLOCKED macro
authorRobert P. J. Day <rpjday@crashcourse.ca>
Mon, 14 Apr 2008 07:56:03 +0000 (09:56 +0200)
committerPatrick McHardy <kaber@trash.net>
Mon, 14 Apr 2008 07:56:03 +0000 (09:56 +0200)
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/ipv4/netfilter/arptable_filter.c
net/ipv4/netfilter/iptable_filter.c
net/ipv4/netfilter/iptable_mangle.c
net/ipv4/netfilter/iptable_raw.c
net/ipv4/netfilter/nf_nat_rule.c
net/ipv6/netfilter/ip6table_filter.c
net/ipv6/netfilter/ip6table_mangle.c
net/ipv6/netfilter/ip6table_raw.c

index 4e9c496a30c29a1cdce4518a05a37918abcb4b33..629e4951a9b1b5e4a502e514d5a1e6baf75a9db6 100644 (file)
@@ -48,7 +48,7 @@ static struct
 static struct arpt_table packet_filter = {
        .name           = "filter",
        .valid_hooks    = FILTER_VALID_HOOKS,
-       .lock           = RW_LOCK_UNLOCKED,
+       .lock           = __RW_LOCK_UNLOCKED(packet_filter.lock),
        .private        = NULL,
        .me             = THIS_MODULE,
        .af             = NF_ARP,
index 7fcf60adbbedea74dbccfb8fd47e4abf659676b5..1ea677dcf84575b62280e83eff76955f3454ba5b 100644 (file)
@@ -56,7 +56,7 @@ static struct
 static struct xt_table packet_filter = {
        .name           = "filter",
        .valid_hooks    = FILTER_VALID_HOOKS,
-       .lock           = RW_LOCK_UNLOCKED,
+       .lock           = __RW_LOCK_UNLOCKED(packet_filter.lock),
        .me             = THIS_MODULE,
        .af             = AF_INET,
 };
index ba827035b691d82eb823099e81069c826c29ffd4..da59182f222639ffbc0dda3652e9b89d3b36fc0b 100644 (file)
@@ -67,7 +67,7 @@ static struct
 static struct xt_table packet_mangler = {
        .name           = "mangle",
        .valid_hooks    = MANGLE_VALID_HOOKS,
-       .lock           = RW_LOCK_UNLOCKED,
+       .lock           = __RW_LOCK_UNLOCKED(packet_mangler.lock),
        .me             = THIS_MODULE,
        .af             = AF_INET,
 };
index 4b689742d58b105e5dc0244c42869aa5ac1f7c73..fddce7754b7250d5f3087840f31f1aa27748a9a1 100644 (file)
@@ -39,7 +39,7 @@ static struct
 static struct xt_table packet_raw = {
        .name = "raw",
        .valid_hooks =  RAW_VALID_HOOKS,
-       .lock = RW_LOCK_UNLOCKED,
+       .lock = __RW_LOCK_UNLOCKED(packet_raw.lock),
        .me = THIS_MODULE,
        .af = AF_INET,
 };
index f8fda57ba20b6bc92ed0753da70ca72ef73fc555..e330a2974de1a7724bfe9fe732100c8429d40658 100644 (file)
@@ -61,7 +61,7 @@ static struct
 static struct xt_table __nat_table = {
        .name           = "nat",
        .valid_hooks    = NAT_VALID_HOOKS,
-       .lock           = RW_LOCK_UNLOCKED,
+       .lock           = __RW_LOCK_UNLOCKED(__nat_table.lock),
        .me             = THIS_MODULE,
        .af             = AF_INET,
 };
index 2d9cd095a72cd51ba8039b2a6b6a6ec4cf7a9c35..f979e48b469b8f308183f0388ff5e7a9f60c603d 100644 (file)
@@ -54,7 +54,7 @@ static struct
 static struct xt_table packet_filter = {
        .name           = "filter",
        .valid_hooks    = FILTER_VALID_HOOKS,
-       .lock           = RW_LOCK_UNLOCKED,
+       .lock           = __RW_LOCK_UNLOCKED(packet_filter.lock),
        .me             = THIS_MODULE,
        .af             = AF_INET6,
 };
index 035343a90ffe198c04acef90a3a33c7a59caea6e..27a5e8b48d93a27fababd4d79fb998903d039422 100644 (file)
@@ -60,7 +60,7 @@ static struct
 static struct xt_table packet_mangler = {
        .name           = "mangle",
        .valid_hooks    = MANGLE_VALID_HOOKS,
-       .lock           = RW_LOCK_UNLOCKED,
+       .lock           = __RW_LOCK_UNLOCKED(packet_mangler.lock),
        .me             = THIS_MODULE,
        .af             = AF_INET6,
 };
index 5cd84203abfe80bc06b2e2ae10ccd74150a0b6ed..92b91077ac2909351c2e357c43d8026900406c1c 100644 (file)
@@ -38,7 +38,7 @@ static struct
 static struct xt_table packet_raw = {
        .name = "raw",
        .valid_hooks = RAW_VALID_HOOKS,
-       .lock = RW_LOCK_UNLOCKED,
+       .lock = __RW_LOCK_UNLOCKED(packet_raw.lock),
        .me = THIS_MODULE,
        .af = AF_INET6,
 };