fib: fib_rules_cleanup can be static
Subsystems (3)
PATCH 1/1 fib: fib_rules_cleanup can be static
fib_rules_cleanup_ups is only defined and used in one place.
Signed-off-by Stephen Hemminger <[email protected]>
include/net/fib_rules.h +0 -1
@@ -106,7 +106,6 @@ static inline u32 frh_get_table(struct fextern 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 *); extern int fib_rules_lookup(struct fib_rules_ops *, struct flowi *, int flags,
net/core/fib_rules.c +1 -2
@@ -144,7 +144,7 @@ fib_rules_register(const struct fib_rule }EXPORT_SYMBOL_GPL (fib_rules_register); -void fib_rules_cleanup_ops (struct fib_rules_ops *ops) +static void fib_rules_cleanup_ops (struct fib_rules_ops *ops) {struct fib_rule *rule, *tmp;
@@ -153,7 +153,6 @@ void fib_rules_cleanup_ops(struct fib_rufib_rule_put (rule); } } -EXPORT_SYMBOL_GPL (fib_rules_cleanup_ops);static void fib_rules_put_rcu (struct rcu_head *head) {
Quoted 3 lines · Stephen Hemminger
fib_rules_cleanup_upsis only defined and used in one place.Signed-off-by Stephen Hemminger <[email protected]>
Acked-by Eric Dumazet <[email protected]>
From: Stephen Hemminger <[email protected]>
Date: Tue, 5 Oct 2010 15:14:17 +0900
Quoted 3 lines
fib_rules_cleanup_upsis only defined and used in one place.Signed-off-by Stephen Hemminger <[email protected]>
Applied.