From nobody Mon Feb 10 14:52:48 2025 X-Original-To: dev-commits-src-all@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 4Ys6xs5zDkz5mH2C; Mon, 10 Feb 2025 14:52:49 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ys6xr5CcNz4Lk4; Mon, 10 Feb 2025 14:52:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739199168; 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=ue5ozmHG5DSex07heUKF62yAzqMiveoy9lfJ+JtUzhs=; b=MR/+tbFDKvVTQfpNtasH8xem7BPjHYyCfp3JgoZ5NYkepQU/MgcitJUVkgqJ2qWzNYOoS3 aqrJgCQJcOhTddSzbhCkxwcCfTJXDnt+WVatHp0eeqpggnx56lpLu0yqM5rtJ4HioXMWHA Qe6MkfNaa7ccCO9Cibcd0RY99kqINc4++VLtySpNE75Rwuvrs+0tn4pgApzZ2JluvjWHpX rlLsu1/Z4sq3mocqWzSa8f6a2EjbJTo7v25zmEvycjOQeP56zLVBMZwh66L92wcMkVgpLC M0/SAjxDquqBOIBSLOKpeN77z0bJoM5GAFndXEwtsiGekcdzgIlJRKL4U+KoXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739199168; 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=ue5ozmHG5DSex07heUKF62yAzqMiveoy9lfJ+JtUzhs=; b=C3B6qVTcfnSh5baIpbsyiOMa99uboMGyggkGRu93Ir/sNPDiLiDlfoS43rf8/PF5BFDStc mx/O73SQ6DgE999I8NTpcdx9+hLqeTrKUmYbVexFwE80lYoaySb9DQ0+y1OUZfCc+Nj0/V MBgcIPviqNnQ1WyMi2Z+3CLAolwnBrIHFdShahf2tvQrdRzDCKi01G/4o9c7w4n+bh6P3B RHCDDwNVejrc7iexA/Drt9FPYo8llFN8L2Sh7siq2hr8sjodkvagBHxhRnr/dJLZlKlyrr iPN5hnuMDn77Qw41kLqrVoIAJE663X2zQqeoNKdFxnLJ/3iaIRpinTSh6fLQQQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1739199168; a=rsa-sha256; cv=none; b=OG4tc0LqNySTTKi66IG3zpEEUcNFg04GhW3TncfTYFz9rB8AT0ihorG4Xdok59oVsc1VnF DIyjj2VNlxz0aLMiZGQlKFQ8ShPaS4SkJqmUPjcm5Ayz+fGctTVDhWnv/gIquxKaItHmLT fIuPTrGY2xDxncs1aRLdmCgzoJXeKrcKWTe4aSKpUHSEgIlodJj4/2uIrTWH/Bt0A7YUtJ mZwjRfV5pLnofmnkMs7ufv8VE3V9obgdKdpf+0/Jvc5sg/1k+73TYSvj97oVF/QgYGgBNi PEyu2+pkV0a4uh0pMB7DYwAkKmtsnjcfx1iMsSYyBd/1fypdAdmTYTRmrpFNLQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Ys6xr3sdKzXJx; Mon, 10 Feb 2025 14:52:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 51AEqm6B028160; Mon, 10 Feb 2025 14:52:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 51AEqmtO028157; Mon, 10 Feb 2025 14:52:48 GMT (envelope-from git) Date: Mon, 10 Feb 2025 14:52:48 GMT Message-Id: <202502101452.51AEqmtO028157@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 69aeb770a925 - stable/14 - LinuxKPI: 802.11: implement wiphy_{,un}lock() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/stable/14 X-Git-Reftype: branch X-Git-Commit: 69aeb770a925f23d073dcedaa14bb4565bbeaee0 Auto-Submitted: auto-generated The branch stable/14 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=69aeb770a925f23d073dcedaa14bb4565bbeaee0 commit 69aeb770a925f23d073dcedaa14bb4565bbeaee0 Author: Bjoern A. Zeeb AuthorDate: 2024-12-28 09:43:33 +0000 Commit: Bjoern A. Zeeb CommitDate: 2025-02-10 14:52:10 +0000 LinuxKPI: 802.11: implement wiphy_{,un}lock() This will help us to get minimally better lock coverage in iwlwifi though not yet against the LinuxKPI implementation which will likely switch to this in the future. At least the TODO() logging noise is out of the way. Sponsored by: The FreeBSD Foundation (cherry picked from commit 95a7aa8009877ca95d81967f9af568ef832bb565) --- sys/compat/linuxkpi/common/include/net/cfg80211.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/net/cfg80211.h b/sys/compat/linuxkpi/common/include/net/cfg80211.h index f489e7a7da11..7780b265cf6b 100644 --- a/sys/compat/linuxkpi/common/include/net/cfg80211.h +++ b/sys/compat/linuxkpi/common/include/net/cfg80211.h @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -1358,13 +1359,13 @@ wiphy_dev(struct wiphy *wiphy) static __inline void wiphy_lock(struct wiphy *wiphy) { - TODO(); + mutex_lock(&wiphy->mtx); } static __inline void wiphy_unlock(struct wiphy *wiphy) { - TODO(); + mutex_unlock(&wiphy->mtx); } static __inline void