NETFILTER: Use non-deprecated __RW_LOCK_UNLOCKED macro.
Subsystems (2)
PATCH 1/1 NETFILTER: Use non-deprecated __RW_LOCK_UNLOCKED macro.
Signed-off-by Robert P. J. Day <[email protected]>
---
not compile-tested, but fairly straightforward.
net/ipv4/netfilter/arptable_filter.c | 2 +- net/ipv4/netfilter/iptable_filter.c | 2 +- net/ipv4/netfilter/iptable_mangle.c | 2 +- net/ipv4/netfilter/iptable_raw.c | 2 +- net/ipv4/netfilter/nf_nat_rule.c | 2 +- net/ipv6/netfilter/ip6table_filter.c | 2 +- net/ipv6/netfilter/ip6table_mangle.c | 2 +- net/ipv6/netfilter/ip6table_raw.c | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-)
net/ipv4/netfilter/arptable_filter.c +1 -1
@@ -48,7 +48,7 @@ static structstatic 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 ,
net/ipv4/netfilter/iptable_filter.c +1 -1
@@ -56,7 +56,7 @@ static structstatic 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 , };
net/ipv4/netfilter/iptable_mangle.c +1 -1
@@ -67,7 +67,7 @@ static structstatic 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 , };
net/ipv4/netfilter/iptable_raw.c +1 -1
@@ -39,7 +39,7 @@ static structstatic 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 , };
net/ipv4/netfilter/nf_nat_rule.c +1 -1
@@ -61,7 +61,7 @@ static structstatic 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 , };
net/ipv6/netfilter/ip6table_filter.c +1 -1
@@ -54,7 +54,7 @@ static structstatic 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 , };
net/ipv6/netfilter/ip6table_mangle.c +1 -1
@@ -60,7 +60,7 @@ static structstatic 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 , };
net/ipv6/netfilter/ip6table_raw.c +1 -1
@@ -38,7 +38,7 @@ static structstatic 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 , };
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.
http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================
Quoted 1 line · Robert P. J. Day
Signed-off-by Robert P. J. Day <[email protected]>
Also applied, thanks.