Linux wireless drivers development
 help / color / mirror / Atom feed
From: wuyankun <wuyankun@uniontech.com>
To: penguin-kernel@i-love.sakura.ne.jp
Cc: jeff.johnson@oss.qualcomm.com, johan@kernel.org, kees@kernel.org,
	linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org,
	sumanth.gavini@yahoo.com,
	syzbot+f80c62f371ba6a1e7d79@syzkaller.appspotmail.com,
	syzkaller-bugs@googlegroups.com, wuyankun@uniontech.com
Subject: [PATCH v2] wifi: ath6kl: fix invalid workqueue flags in ath6kl_usb_create()
Date: Thu, 11 Jun 2026 09:55:45 +0800	[thread overview]
Message-ID: <20260611015545.111157-1-wuyankun@uniontech.com> (raw)
In-Reply-To: <075511fc-1136-4208-84d0-9214e761f8ba@I-love.SAKURA.ne.jp>

ath6kl_usb_create() currently creates ath6kl_wq with flags set to 0:

  alloc_workqueue("ath6kl_wq", 0, 0)

This triggers a runtime warning in __alloc_workqueue() because the queue is
created with neither WQ_PERCPU nor WQ_UNBOUND set:

  workqueue: ath6kl_wq is using neither WQ_PERCPU or WQ_UNBOUND.
  Setting WQ_PERCPU.

Set WQ_PERCPU explicitly to match the actual execution model and remove the
warning during device probe. No functional change intended.

Fixes: 21c05ca88a54 ("workqueue: Add warnings and ensure one among WQ_PERCPU or WQ_UNBOUND is present")
Reported-by: syzbot+f80c62f371ba6a1e7d79@syzkaller.appspotmail.com
Link: https://lore.kernel.org/all/6a289c01.39669fcc.33b062.00aa.GAE@google.com/T/
Signed-off-by: wuyankun <wuyankun@uniontech.com>
---
 drivers/net/wireless/ath/ath6kl/usb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath6kl/usb.c b/drivers/net/wireless/ath/ath6kl/usb.c
index 79c18f5ee02b..945984c3dbe6 100644
--- a/drivers/net/wireless/ath/ath6kl/usb.c
+++ b/drivers/net/wireless/ath/ath6kl/usb.c
@@ -636,7 +636,7 @@ static struct ath6kl_usb *ath6kl_usb_create(struct usb_interface *interface)
 	ar_usb = kzalloc_obj(struct ath6kl_usb);
 	if (ar_usb == NULL)
 		return NULL;
-	ar_usb->wq = alloc_workqueue("ath6kl_wq", 0, 0);
+	ar_usb->wq = alloc_workqueue("ath6kl_wq", WQ_PERCPU, 0);
 	if (!ar_usb->wq) {
 		kfree(ar_usb);
 		return NULL;
-- 
2.20.1


  reply	other threads:[~2026-06-11  1:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-10  9:22 [PATCH] wifi: ath6kl: fix invalid workqueue flags in ath6kl_usb_create() wuyankun
2026-06-10 11:00 ` Tetsuo Handa
2026-06-11  1:55   ` wuyankun [this message]
2026-06-14 22:31     ` [PATCH v2] " Tejun Heo
  -- strict thread matches above, loose matches on Subject: below --
2026-06-12  6:05 wuyankun

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=20260611015545.111157-1-wuyankun@uniontech.com \
    --to=wuyankun@uniontech.com \
    --cc=jeff.johnson@oss.qualcomm.com \
    --cc=johan@kernel.org \
    --cc=kees@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=penguin-kernel@i-love.sakura.ne.jp \
    --cc=sumanth.gavini@yahoo.com \
    --cc=syzbot+f80c62f371ba6a1e7d79@syzkaller.appspotmail.com \
    --cc=syzkaller-bugs@googlegroups.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