projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a77452
)
dm thin: use INIT_WORK_ONSTACK in noflush_work to avoid ODEBUG warning
author
Mike Snitzer
<snitzer@redhat.com>
Tue, 29 Apr 2014 15:22:04 +0000
(11:22 -0400)
committer
Mike Snitzer
<snitzer@redhat.com>
Tue, 29 Apr 2014 15:22:04 +0000
(11:22 -0400)
Use INIT_WORK_ONSTACK to silence "ODEBUG: object is on stack, but not
annotated".
Reported-by: Zdeněk Kabeláč <zkabelac@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Acked-by: Joe Thornber <ejt@redhat.com>
drivers/md/dm-thin.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/dm-thin.c
b/drivers/md/dm-thin.c
index 28fc282b61b221808b3bfe7255488f35891c3283..13abade76ad9bbd65c83c67d35f075506b17b63f 100644
(file)
--- a/
drivers/md/dm-thin.c
+++ b/
drivers/md/dm-thin.c
@@
-1625,7
+1625,7
@@
static void noflush_work(struct thin_c *tc, void (*fn)(struct work_struct *))
{
struct noflush_work w;
- INIT_WORK(&w.worker, fn);
+ INIT_WORK
_ONSTACK
(&w.worker, fn);
w.tc = tc;
atomic_set(&w.complete, 0);
init_waitqueue_head(&w.wait);