Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1360732

[RFC PATCH linux-next] net: dst_cache_per_cpu_dst_set() can be static

From kbuild test robot <fengguang.wu@intel.com>
Newsgroups linux.kernel
Subject [RFC PATCH linux-next] net: dst_cache_per_cpu_dst_set() can be static
Date 2016-03-18 16:30 +0100
Message-ID <re4vE-ca-29@gated-at.bofh.it> (permalink)
References <re4vD-ca-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
 dst_cache.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/net/core/dst_cache.c b/net/core/dst_cache.c
index 3938f3f..554d364 100644
--- a/net/core/dst_cache.c
+++ b/net/core/dst_cache.c
@@ -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;
 

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[linux-next:master 4720/12950] net/core/dst_cache.c:31:6: sparse:  symbol 'dst_cache_per_cpu_dst_set' was not declared. Should it be static? kbuild test robot <fengguang.wu@intel.com> - 2016-03-18 16:30 +0100
  [RFC PATCH linux-next] net: dst_cache_per_cpu_dst_set() can be static kbuild test robot <fengguang.wu@intel.com> - 2016-03-18 16:30 +0100
    Re: [RFC PATCH linux-next] net: dst_cache_per_cpu_dst_set() can be  static David Miller <davem@davemloft.net> - 2016-03-18 22:50 +0100

csiph-web