From: Mike Snitzer Date: Mon, 30 Apr 2018 19:40:40 +0000 (-0400) Subject: dm cache background tracker: fix sparse warning X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=280884fadc5bd81628da3f158ae6821ea7386432;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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;