Re: [PATCH] workqueue: Don't call va_start / va_end twice

From: Tejun Heo
Date: Tue Aug 20 2024 - 15:39:43 EST


On Tue, Aug 20, 2024 at 12:38:08PM -0700, Matthew Brost wrote:
> Calling va_start / va_end multiple times is undefined and causes
> problems with certain compiler / platforms.
>
> Change alloc_ordered_workqueue_lockdep_map to a macro and updated
> __alloc_workqueue to take a va_list argument.
>
> Cc: Sergey Senozhatsky <senozhatsky@xxxxxxxxxxxx>
> Cc: Tejun Heo <tj@xxxxxxxxxx>
> Cc: Lai Jiangshan <jiangshanlai@xxxxxxxxx>
> Signed-off-by: Matthew Brost <matthew.brost@xxxxxxxxx>

Applied to wq/for-6.12.

Thanks.

--
tejun