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 /include/net/fib_rules.h | |
parent | 8c52d509e84bbf26cffb8b6e75b399689af67885 (diff) | |
download | linux-stable-3d0c9c4eb2dbdcc461be4084abd87a9a9e70f713.tar.gz linux-stable-3d0c9c4eb2dbdcc461be4084abd87a9a9e70f713.tar.bz2 linux-stable-3d0c9c4eb2dbdcc461be4084abd87a9a9e70f713.zip |
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 'include/net/fib_rules.h')
-rw-r--r-- | include/net/fib_rules.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/fib_rules.h b/include/net/fib_rules.h index 52bd9e6c9141..e8923bc20f9f 100644 --- a/include/net/fib_rules.h +++ b/include/net/fib_rules.h @@ -104,7 +104,7 @@ static inline u32 frh_get_table(struct fib_rule_hdr *frh, struct nlattr **nla) return frh->table; } -extern struct fib_rules_ops *fib_rules_register(struct fib_rules_ops *, struct net *); +extern struct fib_rules_ops *fib_rules_register(const struct fib_rules_ops *, struct net *); extern void fib_rules_unregister(struct fib_rules_ops *); extern void fib_rules_cleanup_ops(struct fib_rules_ops *); |