diff options
author | Patrick McHardy <kaber@trash.net> | 2010-04-26 16:02:04 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-04-26 16:02:04 +0200 |
commit | 3d0c9c4eb2dbdcc461be4084abd87a9a9e70f713 (patch) | |
tree | 3a71a67a1f40afd7afbe0389259eb27d23fbfa36 /net/decnet/dn_rules.c | |
parent | 8c52d509e84bbf26cffb8b6e75b399689af67885 (diff) | |
download | op-kernel-dev-3d0c9c4eb2dbdcc461be4084abd87a9a9e70f713.zip op-kernel-dev-3d0c9c4eb2dbdcc461be4084abd87a9a9e70f713.tar.gz |
net: fib_rules: mark arguments to fib_rules_register const and __net_initdata
fib_rules_register() duplicates the template passed to it without modification,
mark the argument as const. Additionally the templates are only needed when
instantiating a new namespace, so mark them as __net_initdata, which means
they can be discarded when CONFIG_NET_NS=n.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/decnet/dn_rules.c')
-rw-r--r-- | net/decnet/dn_rules.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/decnet/dn_rules.c b/net/decnet/dn_rules.c index af28dcc..1226bca 100644 --- a/net/decnet/dn_rules.c +++ b/net/decnet/dn_rules.c @@ -216,7 +216,7 @@ static void dn_fib_rule_flush_cache(struct fib_rules_ops *ops) dn_rt_cache_flush(-1); } -static struct fib_rules_ops dn_fib_rules_ops_template = { +static const struct fib_rules_ops __net_initdata dn_fib_rules_ops_template = { .family = FIB_RULES_DECNET, .rule_size = sizeof(struct dn_fib_rule), .addr_size = sizeof(u16), |