projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7879b4
)
dm cache background tracker: fix sparse warning
author
Mike Snitzer
<snitzer@redhat.com>
Mon, 30 Apr 2018 19:40:40 +0000
(15:40 -0400)
committer
Mike Snitzer
<snitzer@redhat.com>
Mon, 30 Apr 2018 19:40:40 +0000
(15:40 -0400)
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>
drivers/md/dm-cache-background-tracker.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm-cache-background-tracker.c
b/drivers/md/dm-cache-background-tracker.c
index 1d0af0a21fc7e8253ebdba8e47e581e7b112ef3b..84814e819e4c35130ad6444feb88082c37c35768 100644
(file)
--- 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)
+st
atic st
ruct bt_work *alloc_work(struct background_tracker *b)
{
if (max_work_reached(b))
return NULL;