mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]>
This commit is contained in:
parent
8c52d509e8
commit
3d0c9c4eb2
6 changed files with 6 additions and 6 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue