summaryrefslogtreecommitdiff
path: root/drivers/md/dm-cache-background-tracker.c
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2018-04-30 22:40:40 +0300
committerMike Snitzer <snitzer@redhat.com>2018-04-30 22:40:40 +0300
commit280884fadc5bd81628da3f158ae6821ea7386432 (patch)
treedf5c36545e24fb46027250a9c635c88ec7182035 /drivers/md/dm-cache-background-tracker.c
parentf7879b4cea4b7867e7382efdbd805fbe35835337 (diff)
downloadlinux-280884fadc5bd81628da3f158ae6821ea7386432.tar.xz
dm cache background tracker: fix sparse warning
Fix drivers/md/dm-cache-background-tracker.c:169:16: warning: symbol 'alloc_work' was not declared. Should it be static? Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-cache-background-tracker.c')
-rw-r--r--drivers/md/dm-cache-background-tracker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-cache-background-tracker.c b/drivers/md/dm-cache-background-tracker.c
index 1d0af0a21fc7..84814e819e4c 100644
--- a/drivers/md/dm-cache-background-tracker.c
+++ b/drivers/md/dm-cache-background-tracker.c
@@ -166,7 +166,7 @@ static bool max_work_reached(struct background_tracker *b)
atomic_read(&b->pending_demotes) >= b->max_work;
}
-struct bt_work *alloc_work(struct background_tracker *b)
+static struct bt_work *alloc_work(struct background_tracker *b)
{
if (max_work_reached(b))
return NULL;