Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fdccecd0 authored by Robert P. J. Day's avatar Robert P. J. Day Committed by Patrick McHardy
Browse files

[NETFILTER]: Use non-deprecated __RW_LOCK_UNLOCKED macro

parent 0718300c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,
+1 −1
Original line number Diff line number Diff line
@@ -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,
};
+1 −1
Original line number Diff line number Diff line
@@ -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,
};
+1 −1
Original line number Diff line number Diff line
@@ -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,
};
+1 −1
Original line number Diff line number Diff line
@@ -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,
};
Loading