]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
fib: fib_rules_cleanup can be static
authorstephen hemminger <shemminger@vyatta.com>
Mon, 4 Oct 2010 20:14:17 +0000 (20:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Oct 2010 07:47:39 +0000 (00:47 -0700)
fib_rules_cleanup_ups is only defined and used in one place.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/fib_rules.h
net/core/fib_rules.c

index e8923bc20f9ff8f28b586af3b795bcf6230df92f..ac2fd002812ef03ef52fde39c347d91faf956e1e 100644 (file)
@@ -106,7 +106,6 @@ static inline u32 frh_get_table(struct fib_rule_hdr *frh, struct nlattr **nla)
 
 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 *);
 
 extern int                     fib_rules_lookup(struct fib_rules_ops *,
                                                 struct flowi *, int flags,
index 332c2e31d048265841f2c2e7fc5147eab28d83d7..cfb7d25c172d60ae57061c345c7526765c93c5a9 100644 (file)
@@ -144,7 +144,7 @@ fib_rules_register(const struct fib_rules_ops *tmpl, struct net *net)
 }
 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_rules_ops *ops)
                fib_rule_put(rule);
        }
 }
-EXPORT_SYMBOL_GPL(fib_rules_cleanup_ops);
 
 static void fib_rules_put_rcu(struct rcu_head *head)
 {