Skip to content

Commit

Permalink
net: dst_cache_per_cpu_dst_set() can be static
Browse files Browse the repository at this point in the history
commit b73f96f upstream.

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Wu Fengguang authored and Greg Kroah-Hartman committed Feb 25, 2018
1 parent 6e0d1fb commit 554d660
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions net/core/dst_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ struct dst_cache_pcpu {
};
};

void dst_cache_per_cpu_dst_set(struct dst_cache_pcpu *dst_cache,
struct dst_entry *dst, u32 cookie)
static void dst_cache_per_cpu_dst_set(struct dst_cache_pcpu *dst_cache,
struct dst_entry *dst, u32 cookie)
{
dst_release(dst_cache->dst);
if (dst)
Expand All @@ -39,8 +39,8 @@ void dst_cache_per_cpu_dst_set(struct dst_cache_pcpu *dst_cache,
dst_cache->dst = dst;
}

struct dst_entry *dst_cache_per_cpu_get(struct dst_cache *dst_cache,
struct dst_cache_pcpu *idst)
static struct dst_entry *dst_cache_per_cpu_get(struct dst_cache *dst_cache,
struct dst_cache_pcpu *idst)
{
struct dst_entry *dst;

Expand Down

0 comments on commit 554d660

Please sign in to comment.