* [next:master 138/302] mm/zbud.c:137:6: sparse: symbol 'zbud_zpool_destroy' was not declared. Should it be static?
@ 2014-06-26 9:22 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2014-06-26 9:22 UTC (permalink / raw)
To: Dan Streetman; +Cc: Linux Memory Management List, Andrew Morton, kbuild-all
[-- Attachment #1: Type: text/plain, Size: 1178 bytes --]
tree: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 070b95becb3dee794bc6e313ec391b598e8664f9
commit: a5eaa8ab0f9c42b8b4c457c15c09b8f9b092ecef [138/302] mm/zpool: update zswap to use zpool
reproduce: make C=1 CF=-D__CHECK_ENDIAN__
sparse warnings: (new ones prefixed by >>)
>> mm/zbud.c:137:6: sparse: symbol 'zbud_zpool_destroy' was not declared. Should it be static?
>> mm/zbud.c:142:5: sparse: symbol 'zbud_zpool_malloc' was not declared. Should it be static?
>> mm/zbud.c:146:6: sparse: symbol 'zbud_zpool_free' was not declared. Should it be static?
>> mm/zbud.c:151:5: sparse: symbol 'zbud_zpool_shrink' was not declared. Should it be static?
>> mm/zbud.c:170:6: sparse: symbol 'zbud_zpool_map' was not declared. Should it be static?
>> mm/zbud.c:175:6: sparse: symbol 'zbud_zpool_unmap' was not declared. Should it be static?
>> mm/zbud.c:180:5: sparse: symbol 'zbud_zpool_total_size' was not declared. Should it be static?
Please consider folding the attached diff :-)
---
0-DAY kernel build testing backend Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
[-- Attachment #2: make-it-static-a5eaa8ab0f9c42b8b4c457c15c09b8f9b092ecef.diff --]
[-- Type: text/x-diff, Size: 1843 bytes --]
From: Fengguang Wu <fengguang.wu@intel.com>
Subject: [PATCH next] mm/zpool: zbud_zpool_destroy() can be static
TO: Dan Streetman <ddstreet@ieee.org>
CC: linux-mm@kvack.org
CC: linux-kernel@vger.kernel.org
CC: Dan Streetman <ddstreet@ieee.org>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
zbud.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/mm/zbud.c b/mm/zbud.c
index 645379e..1695c28 100644
--- a/mm/zbud.c
+++ b/mm/zbud.c
@@ -134,21 +134,21 @@ static void *zbud_zpool_create(gfp_t gfp, struct zpool_ops *zpool_ops)
return zbud_create_pool(gfp, &zbud_zpool_ops);
}
-void zbud_zpool_destroy(void *pool)
+static void zbud_zpool_destroy(void *pool)
{
zbud_destroy_pool(pool);
}
-int zbud_zpool_malloc(void *pool, size_t size, unsigned long *handle)
+static int zbud_zpool_malloc(void *pool, size_t size, unsigned long *handle)
{
return zbud_alloc(pool, size, handle);
}
-void zbud_zpool_free(void *pool, unsigned long handle)
+static void zbud_zpool_free(void *pool, unsigned long handle)
{
zbud_free(pool, handle);
}
-int zbud_zpool_shrink(void *pool, unsigned int pages,
+static int zbud_zpool_shrink(void *pool, unsigned int pages,
unsigned int *reclaimed)
{
unsigned int total = 0;
@@ -167,17 +167,17 @@ int zbud_zpool_shrink(void *pool, unsigned int pages,
return ret;
}
-void *zbud_zpool_map(void *pool, unsigned long handle,
+static void *zbud_zpool_map(void *pool, unsigned long handle,
enum zpool_mapmode mm)
{
return zbud_map(pool, handle);
}
-void zbud_zpool_unmap(void *pool, unsigned long handle)
+static void zbud_zpool_unmap(void *pool, unsigned long handle)
{
zbud_unmap(pool, handle);
}
-u64 zbud_zpool_total_size(void *pool)
+static u64 zbud_zpool_total_size(void *pool)
{
return zbud_get_pool_size(pool) * PAGE_SIZE;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-06-26 9:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-26 9:22 [next:master 138/302] mm/zbud.c:137:6: sparse: symbol 'zbud_zpool_destroy' was not declared. Should it be static? kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox