Re: [PATCH] kernel/workqueue: Verify alloc_workqueue() argument list consistency

From: Tejun Heo
Date: Tue Apr 16 2019 - 10:56:43 EST


On Tue, Mar 19, 2019 at 10:40:47AM -0700, Bart Van Assche wrote:
> This patch avoids that gcc reports the following warning when building
> with W=1:
>
> kernel/workqueue.c:4250:2: warning: function alloc_workqueue might be a candidate for gnu_printf format attribute [-Wsuggest-attribute=format]
> vsnprintf(wq->name, sizeof(wq->name), fmt, args);
>
> Cc: Lai Jiangshan <jiangshanlai@xxxxxxxxx>
> Cc: Alexander Duyck <alexander.h.duyck@xxxxxxxxxxxxxxx>
> Cc: Dan Williams <dan.j.williams@xxxxxxxxx>
> Fixes: 669de8bda87b ("kernel/workqueue: Use dynamic lockdep keys for workqueues")
> Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx>

Applied to wq/for-5.2.

Thanks.

--
tejun