dm thin: use INIT_WORK_ONSTACK in noflush_work to avoid ODEBUG warning
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>
This commit is contained in:
parent
3a7745215e
commit
fbcde3d8b9
|
@ -1625,7 +1625,7 @@ static void noflush_work(struct thin_c *tc, void (*fn)(struct work_struct *))
|
||||||
{
|
{
|
||||||
struct noflush_work w;
|
struct noflush_work w;
|
||||||
|
|
||||||
INIT_WORK(&w.worker, fn);
|
INIT_WORK_ONSTACK(&w.worker, fn);
|
||||||
w.tc = tc;
|
w.tc = tc;
|
||||||
atomic_set(&w.complete, 0);
|
atomic_set(&w.complete, 0);
|
||||||
init_waitqueue_head(&w.wait);
|
init_waitqueue_head(&w.wait);
|
||||||
|
|
Loading…
Reference in New Issue