]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
netfilter: fix warning about invalid const usage
authorEric Leblond <eric@inl.fr>
Thu, 26 Mar 2009 08:03:23 +0000 (01:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Mar 2009 08:03:23 +0000 (01:03 -0700)
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 ca735b3aaa945626ba65a3e51145bfe4ecd9e222 ("netfilter:
use a linked list of loggers").

Pointed-out-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Eric Leblond <eric@inl.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/netfilter/ebt_log.c
net/bridge/netfilter/ebt_ulog.c

index d44cbf8c374af41d54bb0d7cd0727fa06d30052a..a94f3cc377c0749cf54d479c9388abe3812b8d58 100644 (file)
@@ -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,
index 2c6d6823e703dd62d226a30b740c50fab79615c7..80c78c5611b4644035d6b2cea3887dda5e59fccd 100644 (file)
@@ -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,