Commit 2aa7f36c authored by Adrian Bunk's avatar Adrian Bunk Committed by David S. Miller

[DECNET]: cleanups

- make the following needlessly global functions static:
  - dn_fib.c: dn_fib_sync_down()
  - dn_fib.c: dn_fib_sync_up()
  - dn_rules.c: dn_fib_rule_action()
- remove the following unneeded prototype:
  - dn_fib.c: dn_cache_dump()
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 50da859d
...@@ -131,9 +131,6 @@ extern __le16 dn_fib_get_attr16(struct rtattr *attr, int attrlen, int type); ...@@ -131,9 +131,6 @@ extern __le16 dn_fib_get_attr16(struct rtattr *attr, int attrlen, int type);
extern void dn_fib_flush(void); extern void dn_fib_flush(void);
extern void dn_fib_select_multipath(const struct flowi *fl, extern void dn_fib_select_multipath(const struct flowi *fl,
struct dn_fib_res *res); struct dn_fib_res *res);
extern int dn_fib_sync_down(__le16 local, struct net_device *dev,
int force);
extern int dn_fib_sync_up(struct net_device *dev);
/* /*
* dn_tables.c * dn_tables.c
......
...@@ -55,8 +55,6 @@ ...@@ -55,8 +55,6 @@
#define endfor_nexthops(fi) } #define endfor_nexthops(fi) }
extern int dn_cache_dump(struct sk_buff *skb, struct netlink_callback *cb);
static DEFINE_SPINLOCK(dn_fib_multipath_lock); static DEFINE_SPINLOCK(dn_fib_multipath_lock);
static struct dn_fib_info *dn_fib_info_list; static struct dn_fib_info *dn_fib_info_list;
static DEFINE_SPINLOCK(dn_fib_info_lock); static DEFINE_SPINLOCK(dn_fib_info_lock);
...@@ -80,6 +78,9 @@ static struct ...@@ -80,6 +78,9 @@ static struct
[RTN_XRESOLVE] = { .error = -EINVAL, .scope = RT_SCOPE_NOWHERE }, [RTN_XRESOLVE] = { .error = -EINVAL, .scope = RT_SCOPE_NOWHERE },
}; };
static int dn_fib_sync_down(__le16 local, struct net_device *dev, int force);
static int dn_fib_sync_up(struct net_device *dev);
void dn_fib_free_info(struct dn_fib_info *fi) void dn_fib_free_info(struct dn_fib_info *fi)
{ {
if (fi->fib_dead == 0) { if (fi->fib_dead == 0) {
...@@ -651,7 +652,7 @@ static int dn_fib_dnaddr_event(struct notifier_block *this, unsigned long event, ...@@ -651,7 +652,7 @@ static int dn_fib_dnaddr_event(struct notifier_block *this, unsigned long event,
return NOTIFY_DONE; return NOTIFY_DONE;
} }
int dn_fib_sync_down(__le16 local, struct net_device *dev, int force) static int dn_fib_sync_down(__le16 local, struct net_device *dev, int force)
{ {
int ret = 0; int ret = 0;
int scope = RT_SCOPE_NOWHERE; int scope = RT_SCOPE_NOWHERE;
...@@ -695,7 +696,7 @@ int dn_fib_sync_down(__le16 local, struct net_device *dev, int force) ...@@ -695,7 +696,7 @@ int dn_fib_sync_down(__le16 local, struct net_device *dev, int force)
} }
int dn_fib_sync_up(struct net_device *dev) static int dn_fib_sync_up(struct net_device *dev)
{ {
int ret = 0; int ret = 0;
......
...@@ -75,8 +75,8 @@ int dn_fib_lookup(struct flowi *flp, struct dn_fib_res *res) ...@@ -75,8 +75,8 @@ int dn_fib_lookup(struct flowi *flp, struct dn_fib_res *res)
return err; return err;
} }
int dn_fib_rule_action(struct fib_rule *rule, struct flowi *flp, int flags, static int dn_fib_rule_action(struct fib_rule *rule, struct flowi *flp,
struct fib_lookup_arg *arg) int flags, struct fib_lookup_arg *arg)
{ {
int err = -EAGAIN; int err = -EAGAIN;
struct dn_fib_table *tbl; struct dn_fib_table *tbl;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment