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

Commit 704b3ea3 authored by Eric Leblond's avatar Eric Leblond Committed by David S. Miller
Browse files

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: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarEric Leblond <eric@inl.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a6c42322
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -214,7 +214,7 @@ static struct xt_target ebt_log_tg_reg __read_mostly = {
	.me		= THIS_MODULE,
};

static const struct nf_logger ebt_log_logger = {
static struct nf_logger ebt_log_logger __read_mostly = {
	.name 		= "ebt_log",
	.logfn		= &ebt_log_packet,
	.me		= THIS_MODULE,
+1 −1
Original line number Diff line number Diff line
@@ -279,7 +279,7 @@ static struct xt_target ebt_ulog_tg_reg __read_mostly = {
	.me		= THIS_MODULE,
};

static const struct nf_logger ebt_ulog_logger = {
static struct nf_logger ebt_ulog_logger __read_mostly = {
	.name		= "ulog",
	.logfn		= &ebt_log_packet,
	.me		= THIS_MODULE,