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


Groups > linux.kernel > #1360729 > unrolled 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?

Started bykbuild test robot <fengguang.wu@intel.com>
First post2016-03-18 16:30 +0100
Last post2016-03-18 22:50 +0100
Articles 3 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [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

#1360729 — [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?

Fromkbuild test robot <fengguang.wu@intel.com>
Date2016-03-18 16:30 +0100
Subject[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?
Message-ID<re4vD-ca-1@gated-at.bofh.it>
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   5e3497cca281616e7930b74a0076b7324dcc2057
commit: 607f725f6f7d5ec3759fbc16224afb60e2152a5b [4720/12950] net: replace dst_cache ip6_tunnel implementation with the generic one
reproduce:
        # apt-get install sparse
        git checkout 607f725f6f7d5ec3759fbc16224afb60e2152a5b
        make ARCH=x86_64 allmodconfig
        make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> net/core/dst_cache.c:31:6: sparse: symbol 'dst_cache_per_cpu_dst_set' was not declared. Should it be static?
>> net/core/dst_cache.c:42:18: sparse: symbol 'dst_cache_per_cpu_get' was not declared. Should it be static?

Please review and possibly fold the followup patch.

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[toc] | [next] | [standalone]


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

Fromkbuild test robot <fengguang.wu@intel.com>
Date2016-03-18 16:30 +0100
Subject[RFC PATCH linux-next] net: dst_cache_per_cpu_dst_set() can be static
Message-ID<re4vE-ca-29@gated-at.bofh.it>
In reply to#1360729
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;
 

[toc] | [prev] | [next] | [standalone]


#1360951 — Re: [RFC PATCH linux-next] net: dst_cache_per_cpu_dst_set() can be static

FromDavid Miller <davem@davemloft.net>
Date2016-03-18 22:50 +0100
SubjectRe: [RFC PATCH linux-next] net: dst_cache_per_cpu_dst_set() can be static
Message-ID<rearo-11p-15@gated-at.bofh.it>
In reply to#1360732
From: kbuild test robot <fengguang.wu@intel.com>
Date: Fri, 18 Mar 2016 23:27:28 +0800

> 
> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>

Looks good, applied, thanks.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web