Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wu Fengguang and committed by
David S. Miller
b73f96fc bd9e3350

+4 -4
+4 -4
net/core/dst_cache.c
··· 28 28 }; 29 29 }; 30 30 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) 33 33 { 34 34 dst_release(dst_cache->dst); 35 35 if (dst) ··· 39 39 dst_cache->dst = dst; 40 40 } 41 41 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) 44 44 { 45 45 struct dst_entry *dst; 46 46