提交 fdccecd0 编写于 作者: R Robert P. J. Day 提交者: Patrick McHardy

[NETFILTER]: Use non-deprecated __RW_LOCK_UNLOCKED macro

Signed-off-by: NRobert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: NPatrick McHardy <kaber@trash.net>
上级 0718300c
...@@ -48,7 +48,7 @@ static struct ...@@ -48,7 +48,7 @@ static struct
static struct arpt_table packet_filter = { static struct arpt_table packet_filter = {
.name = "filter", .name = "filter",
.valid_hooks = FILTER_VALID_HOOKS, .valid_hooks = FILTER_VALID_HOOKS,
.lock = RW_LOCK_UNLOCKED, .lock = __RW_LOCK_UNLOCKED(packet_filter.lock),
.private = NULL, .private = NULL,
.me = THIS_MODULE, .me = THIS_MODULE,
.af = NF_ARP, .af = NF_ARP,
......
...@@ -56,7 +56,7 @@ static struct ...@@ -56,7 +56,7 @@ static struct
static struct xt_table packet_filter = { static struct xt_table packet_filter = {
.name = "filter", .name = "filter",
.valid_hooks = FILTER_VALID_HOOKS, .valid_hooks = FILTER_VALID_HOOKS,
.lock = RW_LOCK_UNLOCKED, .lock = __RW_LOCK_UNLOCKED(packet_filter.lock),
.me = THIS_MODULE, .me = THIS_MODULE,
.af = AF_INET, .af = AF_INET,
}; };
......
...@@ -67,7 +67,7 @@ static struct ...@@ -67,7 +67,7 @@ static struct
static struct xt_table packet_mangler = { static struct xt_table packet_mangler = {
.name = "mangle", .name = "mangle",
.valid_hooks = MANGLE_VALID_HOOKS, .valid_hooks = MANGLE_VALID_HOOKS,
.lock = RW_LOCK_UNLOCKED, .lock = __RW_LOCK_UNLOCKED(packet_mangler.lock),
.me = THIS_MODULE, .me = THIS_MODULE,
.af = AF_INET, .af = AF_INET,
}; };
......
...@@ -39,7 +39,7 @@ static struct ...@@ -39,7 +39,7 @@ static struct
static struct xt_table packet_raw = { static struct xt_table packet_raw = {
.name = "raw", .name = "raw",
.valid_hooks = RAW_VALID_HOOKS, .valid_hooks = RAW_VALID_HOOKS,
.lock = RW_LOCK_UNLOCKED, .lock = __RW_LOCK_UNLOCKED(packet_raw.lock),
.me = THIS_MODULE, .me = THIS_MODULE,
.af = AF_INET, .af = AF_INET,
}; };
......
...@@ -61,7 +61,7 @@ static struct ...@@ -61,7 +61,7 @@ static struct
static struct xt_table __nat_table = { static struct xt_table __nat_table = {
.name = "nat", .name = "nat",
.valid_hooks = NAT_VALID_HOOKS, .valid_hooks = NAT_VALID_HOOKS,
.lock = RW_LOCK_UNLOCKED, .lock = __RW_LOCK_UNLOCKED(__nat_table.lock),
.me = THIS_MODULE, .me = THIS_MODULE,
.af = AF_INET, .af = AF_INET,
}; };
......
...@@ -54,7 +54,7 @@ static struct ...@@ -54,7 +54,7 @@ static struct
static struct xt_table packet_filter = { static struct xt_table packet_filter = {
.name = "filter", .name = "filter",
.valid_hooks = FILTER_VALID_HOOKS, .valid_hooks = FILTER_VALID_HOOKS,
.lock = RW_LOCK_UNLOCKED, .lock = __RW_LOCK_UNLOCKED(packet_filter.lock),
.me = THIS_MODULE, .me = THIS_MODULE,
.af = AF_INET6, .af = AF_INET6,
}; };
......
...@@ -60,7 +60,7 @@ static struct ...@@ -60,7 +60,7 @@ static struct
static struct xt_table packet_mangler = { static struct xt_table packet_mangler = {
.name = "mangle", .name = "mangle",
.valid_hooks = MANGLE_VALID_HOOKS, .valid_hooks = MANGLE_VALID_HOOKS,
.lock = RW_LOCK_UNLOCKED, .lock = __RW_LOCK_UNLOCKED(packet_mangler.lock),
.me = THIS_MODULE, .me = THIS_MODULE,
.af = AF_INET6, .af = AF_INET6,
}; };
......
...@@ -38,7 +38,7 @@ static struct ...@@ -38,7 +38,7 @@ static struct
static struct xt_table packet_raw = { static struct xt_table packet_raw = {
.name = "raw", .name = "raw",
.valid_hooks = RAW_VALID_HOOKS, .valid_hooks = RAW_VALID_HOOKS,
.lock = RW_LOCK_UNLOCKED, .lock = __RW_LOCK_UNLOCKED(packet_raw.lock),
.me = THIS_MODULE, .me = THIS_MODULE,
.af = AF_INET6, .af = AF_INET6,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册