Re: [PATCH] workqueue: add printf attribute to __alloc_workqueue()

From: Tejun Heo
Date: Tue Dec 24 2024 - 14:51:44 EST


On Tue, Dec 24, 2024 at 12:43:58PM +0800, Su Hui wrote:
> Fix a compiler warning with W=1:
> kernel/workqueue.c: error:
> function ‘__alloc_workqueue’ might be a candidate for ‘gnu_printf’
> format attribute[-Werror=suggest-attribute=format]
> 5657 | name_len = vsnprintf(wq->name, sizeof(wq->name), fmt, args);
> | ^~~~~~~~
>
> Fixes: 9b59a85a84dc ("workqueue: Don't call va_start / va_end twice")
> Signed-off-by: Su Hui <suhui@xxxxxxxxxxxx>

Applied to wq/for-6.13-fixes.

Thanks.

--
tejun