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 /drivers | |
parent | f7879b4cea4b7867e7382efdbd805fbe35835337 (diff) | |
download | linux-280884fadc5bd81628da3f158ae6821ea7386432.tar.bz2 |
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')
-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) 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; |