mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 08:08:54 +00:00
net: ipv4: make fib_select_default static
fib_select_default has a single caller within the same file. Make it static. Signed-off-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0c8d803f39
commit
c7b371e34c
2 changed files with 1 additions and 2 deletions
|
@ -344,7 +344,6 @@ __be32 fib_compute_spec_dst(struct sk_buff *skb);
|
||||||
int fib_validate_source(struct sk_buff *skb, __be32 src, __be32 dst,
|
int fib_validate_source(struct sk_buff *skb, __be32 src, __be32 dst,
|
||||||
u8 tos, int oif, struct net_device *dev,
|
u8 tos, int oif, struct net_device *dev,
|
||||||
struct in_device *idev, u32 *itag);
|
struct in_device *idev, u32 *itag);
|
||||||
void fib_select_default(const struct flowi4 *flp, struct fib_result *res);
|
|
||||||
#ifdef CONFIG_IP_ROUTE_CLASSID
|
#ifdef CONFIG_IP_ROUTE_CLASSID
|
||||||
static inline int fib_num_tclassid_users(struct net *net)
|
static inline int fib_num_tclassid_users(struct net *net)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1434,7 +1434,7 @@ int fib_sync_down_dev(struct net_device *dev, unsigned long event, bool force)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Must be invoked inside of an RCU protected region. */
|
/* Must be invoked inside of an RCU protected region. */
|
||||||
void fib_select_default(const struct flowi4 *flp, struct fib_result *res)
|
static void fib_select_default(const struct flowi4 *flp, struct fib_result *res)
|
||||||
{
|
{
|
||||||
struct fib_info *fi = NULL, *last_resort = NULL;
|
struct fib_info *fi = NULL, *last_resort = NULL;
|
||||||
struct hlist_head *fa_head = res->fa_head;
|
struct hlist_head *fa_head = res->fa_head;
|
||||||
|
|
Loading…
Reference in a new issue