Skip to content
Commit d57212f2 authored by Su Hui's avatar Su Hui Committed by Tejun Heo
Browse files

workqueue: add printf attribute to __alloc_workqueue()



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: 9b59a85a ("workqueue: Don't call va_start / va_end twice")
Signed-off-by: default avatarSu Hui <suhui@nfschina.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent de35994e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment