diff options
author | Patrick McHardy <kaber@trash.net> | 2010-04-26 10:02:04 -0400 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-04-26 10:02:04 -0400 |
commit | 3d0c9c4eb2dbdcc461be4084abd87a9a9e70f713 (patch) | |
tree | 3a71a67a1f40afd7afbe0389259eb27d23fbfa36 /net/core/fib_rules.c | |
parent | 8c52d509e84bbf26cffb8b6e75b399689af67885 (diff) |
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/core/fib_rules.c')
-rw-r--r-- | net/core/fib_rules.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/fib_rules.c b/net/core/fib_rules.c index 1bc66592453..42e84e08a1b 100644 --- a/net/core/fib_rules.c +++ b/net/core/fib_rules.c | |||
@@ -122,7 +122,7 @@ errout: | |||
122 | } | 122 | } |
123 | 123 | ||
124 | struct fib_rules_ops * | 124 | struct fib_rules_ops * |
125 | fib_rules_register(struct fib_rules_ops *tmpl, struct net *net) | 125 | fib_rules_register(const struct fib_rules_ops *tmpl, struct net *net) |
126 | { | 126 | { |
127 | struct fib_rules_ops *ops; | 127 | struct fib_rules_ops *ops; |
128 | int err; | 128 | int err; |