Skip to content

Commit 1df9916

Browse files
stephen hemmingerdavem330
authored andcommitted
fib: fib_rules_cleanup can be static
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>
1 parent 6a31d2a commit 1df9916

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

‎include/net/fib_rules.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ static inline u32 frh_get_table(struct fib_rule_hdr *frh, struct nlattr **nla)
106106

107107
extern struct fib_rules_ops *fib_rules_register(const struct fib_rules_ops *, struct net *);
108108
extern void fib_rules_unregister(struct fib_rules_ops *);
109-
extern void fib_rules_cleanup_ops(struct fib_rules_ops *);
110109

111110
extern int fib_rules_lookup(struct fib_rules_ops *,
112111
struct flowi *, int flags,

‎net/core/fib_rules.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ fib_rules_register(const struct fib_rules_ops *tmpl, struct net *net)
144144
}
145145
EXPORT_SYMBOL_GPL(fib_rules_register);
146146

147-
void fib_rules_cleanup_ops(struct fib_rules_ops *ops)
147+
static void fib_rules_cleanup_ops(struct fib_rules_ops *ops)
148148
{
149149
struct fib_rule *rule, *tmp;
150150

@@ -153,7 +153,6 @@ void fib_rules_cleanup_ops(struct fib_rules_ops *ops)
153153
fib_rule_put(rule);
154154
}
155155
}
156-
EXPORT_SYMBOL_GPL(fib_rules_cleanup_ops);
157156

158157
static void fib_rules_put_rcu(struct rcu_head *head)
159158
{

0 commit comments

Comments
 (0)