diff options
author | Mike Snitzer <snitzer@redhat.com> | 2018-04-30 15:40:40 -0400 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2018-04-30 15:40:40 -0400 |
commit | 280884fadc5bd81628da3f158ae6821ea7386432 (patch) | |
tree | df5c36545e24fb46027250a9c635c88ec7182035 | |
parent | f7879b4cea4b7867e7382efdbd805fbe35835337 (diff) |
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>
-rw-r--r-- | drivers/md/dm-cache-background-tracker.c | 2 |
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) | |||
166 | atomic_read(&b->pending_demotes) >= b->max_work; | 166 | atomic_read(&b->pending_demotes) >= b->max_work; |
167 | } | 167 | } |
168 | 168 | ||
169 | struct bt_work *alloc_work(struct background_tracker *b) | 169 | static struct bt_work *alloc_work(struct background_tracker *b) |
170 | { | 170 | { |
171 | if (max_work_reached(b)) | 171 | if (max_work_reached(b)) |
172 | return NULL; | 172 | return NULL; |