From ef01e8efbf9d960f2f3c2f69d897b4ac700b0b1d Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 10 Feb 2015 13:16:17 +0000 Subject: [PATCH] scst_mem: Fix recently introduced sparse warnings (merge r5178 from trunk) git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@6043 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_mem.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scst/src/scst_mem.c b/scst/src/scst_mem.c index c4792da4f..f392e1613 100644 --- a/scst/src/scst_mem.c +++ b/scst/src/scst_mem.c @@ -341,7 +341,7 @@ out_unlock_put: goto out; } -unsigned long __sgv_can_be_shrinked(void) +static unsigned long __sgv_can_be_shrinked(void) { unsigned long res; struct sgv_pool *pool; @@ -365,14 +365,14 @@ unsigned long __sgv_can_be_shrinked(void) } #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 12, 0) -unsigned long sgv_can_be_shrinked(struct shrinker *shrinker, - struct shrink_control *sc) +static unsigned long sgv_can_be_shrinked(struct shrinker *shrinker, + struct shrink_control *sc) { return __sgv_can_be_shrinked(); } -unsigned long sgv_scan_shrink(struct shrinker *shrinker, - struct shrink_control *sc) +static unsigned long sgv_scan_shrink(struct shrinker *shrinker, + struct shrink_control *sc) { int freed = 0;