public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
From: Tejun Heo <tj@kernel.org>
To: Su Hui <suhui@nfschina.com>
Cc: jiangshanlai@gmail.com, matthew.brost@intel.com,
	linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] workqueue: add printf attribute to __alloc_workqueue()
Date: Tue, 24 Dec 2024 09:51:31 -1000	[thread overview]
Message-ID: <Z2sQwx8JlnvF-STl@slm.duckdns.org> (raw)
In-Reply-To: <20241224044357.727530-1-suhui@nfschina.com>

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@nfschina.com>

Applied to wq/for-6.13-fixes.

Thanks.

-- 
tejun

      reply	other threads:[~2024-12-24 19:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-24  4:43 [PATCH] workqueue: add printf attribute to __alloc_workqueue() Su Hui
2024-12-24 19:51 ` Tejun Heo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Z2sQwx8JlnvF-STl@slm.duckdns.org \
    --to=tj@kernel.org \
    --cc=jiangshanlai@gmail.com \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matthew.brost@intel.com \
    --cc=suhui@nfschina.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox