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

2019-04-16 Thread Tejun Heo
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

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

2019-04-15 Thread Alexander Duyck
On Mon, 2019-04-15 at 10:09 -0700, Bart Van Assche wrote: > On Tue, 2019-03-19 at 10:40 -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 > > candid

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

2019-04-15 Thread Bart Van Assche
On Tue, 2019-03-19 at 10:40 -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] > v

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

2019-03-19 Thread Bart Van Assche
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 C