From nobody Sat Feb 17 21:32:59 2024 X-Original-To: dev-commits-src-branches@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 4TchqJ100pz59krB; Sat, 17 Feb 2024 21:33:00 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TchqH5NXVz4hKr; Sat, 17 Feb 2024 21:32:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205579; 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=YDIYJhPQs9L/9AfTGmktzrhz+atPai9Z3ghwXbLc4Do=; b=a2TiznBdgAlCAhPly1c6/tZ89ySXL1OilOoPc2kxD+qcuPfvwTwO6LyYyJGDVGRxQhczWN pxnWrdy/uuD04rCHAIQmik4FSx4TnMgWH9lBGAcUOgvWgbF6QMkg/0vT0vdhbILxLlq9GM oYtXBX511keChtL7URE7LrJi869oSVTpsoRO8K1/prLjiBYz5Lealkk5UdfcIbwLNIScli 5jTGQ9AhuOZ6tiYISwTBBhbm/tJOwC6Pt/9DX6mKw2VdAETOjnScb/R/CUE+9MWIqBho7A i2JHr67IAVjSTGBXxW/2yz6JVRkhnBbmKrtzArkVnM3i/jRpMG0H/P6MsgO73g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205579; 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=YDIYJhPQs9L/9AfTGmktzrhz+atPai9Z3ghwXbLc4Do=; b=WxCSc87PcJ+0lns3J3L8irEnDqBV8ZKDG5PJGf8hW1+k0PgEWOsX1nSSbze1UeMvJMcMib DdlNCCI4hBPtH1ZEeY+plAIqNWnhXXRSVUv/fLcQYmd7ESELIz7+/VHDs6DWAmg9pYQmhz YnjnIH894nHaO1SOB9wCM2BzGi03xT2TnBVBNQIk6rWxuBKTeFpTSuCTghnm7M60dqzy0l hBBdN506K2su58ADinPUZIyFpUEXPOxOTwj2LyZT3LCAB77Vj7WstelsdP/63gmnzuC68Q vsJ2RPj8+0gabaTUaAdSvVbqNoCiF8XHzhOoLI+NyIfZFBUeMfyOfseDVt0J1w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708205579; a=rsa-sha256; cv=none; b=wQuZyn8sZdqrj8Rev6Vtrh+UrK3DeUf+LhadhXmu0OFTu5Jbxn1TISLzU20moD6IpXFrxL jFbzCiCy06T19skUYZnFwFmOEhxQdRUGZvMAz5VcII4DUF8Jg75jsVtutNpnbbJyvjPj6u Hoc8zmsU4CoDPYKUIqtTnuOJWFbGN61Mlif9euATAa/u7m2hRT46qB894hYvE3vZwyufcv XB0TgroT51dmbUbRv9d6y1DvdVzZ06zM7vYYAGf+bqbXuy8p7Xz9lWTSX4DgIcyrWKXi2y 6HQz+iVriV1LONv+hG/Ijtp+dWoMr8qpS7vlmCWiqtMltID/V5j7zXaxzMhf4g== 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 4TchqH4Tc0zPbH; Sat, 17 Feb 2024 21:32:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HLWx9Y020746; Sat, 17 Feb 2024 21:32:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HLWxmG020743; Sat, 17 Feb 2024 21:32:59 GMT (envelope-from git) Date: Sat, 17 Feb 2024 21:32:59 GMT Message-Id: <202402172132.41HLWxmG020743@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: 06db4f5b6232 - stable/14 - LinuxKPI: Add xa_(un)lock_irq to linux/xarray.h List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 06db4f5b62323fe6a8a5755168d4c15ac3dcdd4f Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=06db4f5b62323fe6a8a5755168d4c15ac3dcdd4f commit 06db4f5b62323fe6a8a5755168d4c15ac3dcdd4f Author: Vladimir Kondratyev AuthorDate: 2023-12-24 08:19:59 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-02-17 20:58:37 +0000 LinuxKPI: Add xa_(un)lock_irq to linux/xarray.h On FreeBSD they are equal to non-irq version. Sponsored by: Serenity Cyber Security, LLC Reviewed by: manu, bz MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D42803 (cherry picked from commit 66f9a98335dcc2a3c1eead0d80ccc9fee12bbb31) --- sys/compat/linuxkpi/common/include/linux/xarray.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/xarray.h b/sys/compat/linuxkpi/common/include/linux/xarray.h index e0a97a5b7871..d293a8f7c2a3 100644 --- a/sys/compat/linuxkpi/common/include/linux/xarray.h +++ b/sys/compat/linuxkpi/common/include/linux/xarray.h @@ -95,6 +95,9 @@ void *__xa_next(struct xarray *, unsigned long *, bool); #define xa_erase_irq(xa, index) \ xa_erase((xa), (index)) +#define xa_lock_irq(xa) xa_lock(xa) +#define xa_unlock_irq(xa) xa_unlock(xa) + #define xa_lock_irqsave(xa, flags) \ do { \ xa_lock((xa)); \