]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
net: dst_cache_per_cpu_dst_set() can be static
authorWu Fengguang <fengguang.wu@intel.com>
Fri, 18 Mar 2016 15:27:28 +0000 (23:27 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Mar 2016 21:45:08 +0000 (17:45 -0400)
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dst_cache.c

index 3938f3f38d69990e807a014578431f4cffc86f8d..554d364492314fee6da31cbfe1089f7e6e1ee5ec 100644 (file)
@@ -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)
@@ -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;