mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-19 03:31:26 +00:00
scst_mem: Suppress recently introduced sparse warnings
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5178 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -351,7 +351,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;
|
||||
@@ -375,14 +375,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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user