Skip to content

Commit b73f96f

Browse files
Wu Fengguangdavem330
authored andcommitted
net: dst_cache_per_cpu_dst_set() can be static
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent bd9e335 commit b73f96f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎net/core/dst_cache.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ struct dst_cache_pcpu {
2828
};
2929
};
3030

31-
void dst_cache_per_cpu_dst_set(struct dst_cache_pcpu *dst_cache,
32-
struct dst_entry *dst, u32 cookie)
31+
static void dst_cache_per_cpu_dst_set(struct dst_cache_pcpu *dst_cache,
32+
struct dst_entry *dst, u32 cookie)
3333
{
3434
dst_release(dst_cache->dst);
3535
if (dst)
@@ -39,8 +39,8 @@ void dst_cache_per_cpu_dst_set(struct dst_cache_pcpu *dst_cache,
3939
dst_cache->dst = dst;
4040
}
4141

42-
struct dst_entry *dst_cache_per_cpu_get(struct dst_cache *dst_cache,
43-
struct dst_cache_pcpu *idst)
42+
static struct dst_entry *dst_cache_per_cpu_get(struct dst_cache *dst_cache,
43+
struct dst_cache_pcpu *idst)
4444
{
4545
struct dst_entry *dst;
4646

0 commit comments

Comments
 (0)