提交 704b3ea3 编写于 作者: E Eric Leblond 提交者: David S. Miller

netfilter: fix warning about invalid const usage

This patch fixes the declaration of the logger structure in ebt_log
and ebt_ulog: I forgot to remove the const option from their declaration
in the commit ca735b3a ("netfilter:
use a linked list of loggers").
Pointed-out-by: NStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: NEric Leblond <eric@inl.fr>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a6c42322
...@@ -214,7 +214,7 @@ static struct xt_target ebt_log_tg_reg __read_mostly = { ...@@ -214,7 +214,7 @@ static struct xt_target ebt_log_tg_reg __read_mostly = {
.me = THIS_MODULE, .me = THIS_MODULE,
}; };
static const struct nf_logger ebt_log_logger = { static struct nf_logger ebt_log_logger __read_mostly = {
.name = "ebt_log", .name = "ebt_log",
.logfn = &ebt_log_packet, .logfn = &ebt_log_packet,
.me = THIS_MODULE, .me = THIS_MODULE,
......
...@@ -279,7 +279,7 @@ static struct xt_target ebt_ulog_tg_reg __read_mostly = { ...@@ -279,7 +279,7 @@ static struct xt_target ebt_ulog_tg_reg __read_mostly = {
.me = THIS_MODULE, .me = THIS_MODULE,
}; };
static const struct nf_logger ebt_ulog_logger = { static struct nf_logger ebt_ulog_logger __read_mostly = {
.name = "ulog", .name = "ulog",
.logfn = &ebt_log_packet, .logfn = &ebt_log_packet,
.me = THIS_MODULE, .me = THIS_MODULE,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册