From nobody Wed Dec 3 19:55:17 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dM7fG2vCYz6Hhl4 for ; Wed, 03 Dec 2025 19:55:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dM7fF63Cqz46mp for ; Wed, 03 Dec 2025 19:55:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1764791717; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=912XHzbbQ1alSOKoLHwNw4QTwFzXwuKfjs4jwHNXtD4=; b=Tu7iNTsyoSG7nkWdNksdmF14ppz8ImXjD3ommyLoiNIRgxCQ7XhcWU6wpETJ/OUhsfUi+a fE0wZFnSTdK/YUQsUJ4bU1ndlhET7dViu2mdYvgM+65VT1ozi8u1F6TET1n+jFLONe5cjn G29DRp23WWwz1PrXfOC6T6iEMVBY/7cGoPJMOpO4Fp6rUhaZfHvr1/AZ3+U/1M5Asu1vAX 1wLvvzpSFfwD441y9STUhQ5bj8lTHfstPd/odugyakFa0jng96sjV/g5BN8ZORxRVB7OUW DhF4AnR/fqZNnAy0bciUspWwxaXUU1NqIZU1PAmZE3TL/UeF1MYYOZd6otl4bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1764791717; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=912XHzbbQ1alSOKoLHwNw4QTwFzXwuKfjs4jwHNXtD4=; b=edO/rpv0VjeOzALV1OdzBSyQHBy8UiLL2/dG9wVlOkQaG0CB+bmz6KJYtdqbsDfzmD1UG4 J/UNN1AeWuBB926jyluHcmUXghWEH9oZCEy1QCvl2PHWlQSowozOtzqO4or1eRHkgvFG6J RHbIplYIM6mRGScf67SqyLTCDWR+Ip2VVlOuWo5jGXGT1uPS8eg9NIRplo13VspsNth66g P2pg5d3rTRtu/UxZkR/XkSV6cwKL3RdCNOttykfoUdVrCT+iPcgCRBw8RTQt7HH58P0z7a UuubS3RKYFnaRFEPGZ3t40DDRkp0iGZnqw+7W3UZT5una2rXMMbacYAZqxlcbQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1764791717; a=rsa-sha256; cv=none; b=kFxrWBoM7khL1TNlTUuBcpmDoP3NI8c8R8xe2A5gHaIKxTmsFnUFSKgEBoevOPUZW329tH V81ypiTT/KEHWb6I/PmDsgKhxnahw8OWKeSiXPVYro1+EsoXygpEfjA/VODTZOmDZBNZWl DXaY1p+I4D1INhCs8ut9bTFACs2ssAJYF7Z9JfrVt9GFqQHNPlyJWrPbxNyZWlHe0vnV+h 5+vKo0Y2CepjlJlP77B2DFKz6u6G6hXgeVSt/2EobNI263+y212EZla/XDenN8Rj6OoKqf /lDSTSGU/9/Cje/EY5PHNfox5+w5d3rQaFE5Cvqc4+eJVeIwuAtWyh27ThDoCg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dM7fF5bKjzsMy for ; Wed, 03 Dec 2025 19:55:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 29ec2 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 03 Dec 2025 19:55:17 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Bjoern A. Zeeb Subject: git: 9492230fd3d1 - main - mt76: util.h: extend worker name List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9492230fd3d1e58696e9fd99cb9680b27bf1d424 Auto-Submitted: auto-generated Date: Wed, 03 Dec 2025 19:55:17 +0000 Message-Id: <693095a5.29ec2.5d8349fa@gitrepo.freebsd.org> The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=9492230fd3d1e58696e9fd99cb9680b27bf1d424 commit 9492230fd3d1e58696e9fd99cb9680b27bf1d424 Author: Bjoern A. Zeeb AuthorDate: 2025-12-03 01:01:28 +0000 Commit: Bjoern A. Zeeb CommitDate: 2025-12-03 19:54:44 +0000 mt76: util.h: extend worker name In mt76_worker_setup() add the "name" argument to the description for the worker thread. That way we have a chance to keep them apart. While here, rename a variable and shorten the the (c)/SPDX section according to new style. MFC after: 3 days --- sys/contrib/dev/mediatek/mt76/util.h | 39 ++++++++---------------------------- 1 file changed, 8 insertions(+), 31 deletions(-) diff --git a/sys/contrib/dev/mediatek/mt76/util.h b/sys/contrib/dev/mediatek/mt76/util.h index f6c0ecaf33e6..73a784fe2707 100644 --- a/sys/contrib/dev/mediatek/mt76/util.h +++ b/sys/contrib/dev/mediatek/mt76/util.h @@ -1,30 +1,7 @@ -/*- - * SPDX-License-Identifier: BSD-2-Clause - * - * Copyright (c) 2020,2022-2023 Bjoern A. Zeeb - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. +/* + * Copyright (c) 2020-2025 Bjoern A. Zeeb * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $FreeBSD$ + * SPDX-License-Identifier: BSD-2-Clause */ #ifndef _MT76_UTIL_H @@ -69,23 +46,23 @@ mt76_wcid_mask_clear(u32 *mask, u16 bit) /* See, e.g., __mt76_worker_fn for some details. */ static inline int -mt76_worker_setup(struct ieee80211_hw *hw, struct mt76_worker *w, +mt76_worker_setup(struct ieee80211_hw *hw __unused, struct mt76_worker *w, void (*wfunc)(struct mt76_worker *), const char *name) { - int rc; + int error; if (wfunc) w->fn = wfunc; w->task = kthread_run(__mt76_worker_fn, w, - "mt76-worker"); + "mt76-%s", name); if (!IS_ERR(w->task)) return (0); - rc = PTR_ERR(w->task); + error = PTR_ERR(w->task); w->task = NULL; - return (rc); + return (error); } static inline void