From: Mike Snitzer Date: Tue, 29 Apr 2014 15:22:04 +0000 (-0400) Subject: dm thin: use INIT_WORK_ONSTACK in noflush_work to avoid ODEBUG warning X-Git-Tag: v3.15-rc4~9^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fbcde3d8b9c2d97704b8ca299e5266147b24c8ee;p=platform%2Fkernel%2Flinux-exynos.git 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áč Signed-off-by: Mike Snitzer Acked-by: Joe Thornber --- diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c index 28fc282b61b2..13abade76ad9 100644 --- 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);