dm thin: use INIT_WORK_ONSTACK in noflush_work to avoid ODEBUG warning
authorMike Snitzer <snitzer@redhat.com>
Tue, 29 Apr 2014 15:22:04 +0000 (11:22 -0400)
committerMike 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

index 28fc282b61b221808b3bfe7255488f35891c3283..13abade76ad9bbd65c83c67d35f075506b17b63f 100644 (file)
@@ -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);