mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]>
This commit is contained in:
parent
f7879b4cea
commit
280884fadc
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue