workqueue: Fixes for v7.1-rc2

- Fix devm_alloc_workqueue() passing a va_list as a positional arg to the
  variadic alloc_workqueue() macro, which garbled wq->name and skipped
  lockdep init on the devm path. Fold both noprof entry points onto a
  va_list helper. Also, annotate __printf(1, 0).
workqueue: Annotate alloc_workqueue_va() with __printf(1, 0)

alloc_workqueue_va() forwards its va_list to __alloc_workqueue() which
ultimately feeds vsnprintf(). __alloc_workqueue() already carries
__printf(1, 0); the new wrapper needs the same annotation so format
string checking propagates through the forwarding.

Fixes: 0de4cb473aed ("workqueue: fix devm_alloc_workqueue() va_list misuse")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202604300347.2LgXyteh-lkp@intel.com/
Signed-off-by: Tejun Heo <tj@kernel.org>
1 file changed