From nobody Sun Jul 21 13:14:49 2024 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 4WRkQy2QZZz5RVHL; Sun, 21 Jul 2024 13:14:50 +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 4WRkQx5gPVz4S0Q; Sun, 21 Jul 2024 13:14:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721567689; 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=X9ANBcYx3k+zWYbaRaUrQ/N72vBLMZf5++oeOuFOmlg=; b=bHOIktj9JuPKKiiZhn/RvHmfWj3dGhpy/iABNZmLhJ/BRIyiEmtFWOtgL+w0XMDx9mvpin HKRcRedZWHCzOWVQoey2ykCvjqFoNvuuAbxt9qRazLgfDRgDDJ2U5DP4xV10Xjy4h13YED 3VuwGFWAmTZot6DXCL7YBDjNA6K8etrCBZzf7BWl/nJZ18x0xfYzQ6FL2v9jdwJE51Ot76 v/D8uwEtoqZqhPL86lKSXjP/oM0tkpYugEy5OeN9Cw3VYrFwxqpUfHeHlA1qjT/S4IV2I1 3s290KvzvJaVzoX4KtF/CdGQscFOZv1sGFeFqDtHIHu3cSantuCdRhpNwrWQFw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721567689; a=rsa-sha256; cv=none; b=SNI1/+9+BD5sC1rIRERlXz95dJRnyL3Fv/6UYNWKUGzS21qFMCFWtIIcp8D70oNTogXiiV C45EkUPYPZFqPfawLoRa7s6/s9/fTKLiPT0/dT49gh1Tt0++tOmurS8sYiR5eFGf3+6pbY mHfKMU57EYAClTzABtwgG6lE/mIdWj6Ks4dpwB53SeljT65mrIoT5nbb5gj8KHFXpv65wx YCBjs5fxIW1NXTw1mwbibEpiSwCWarNAGwxDJJXqW9/r5Kap6XYPbB+4d7qERgil/YSsMv LUv7G2gadV75pF1xXhVWLyIR3L0AaoTdQHGQoEWjgHNd1o0+nNTt3fCkfR+5RQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721567689; 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=X9ANBcYx3k+zWYbaRaUrQ/N72vBLMZf5++oeOuFOmlg=; b=W2kcEUB5eTtZoKXhAMvL/fGO+8LLbX5BSiwDp1bslhEg8eSXZgZ1pxtifwWwO3r/Syatmi XuUTxj68WioIlfvwYhWZNsb+WgAG/s0PGq4Rqvo+iDTERQ2v4Dk8BPXx91vKoWS4AJ9Uih H9pdznLnpKiAUOJPdM2OHfnqIJK3uLRrldX4cL0Jpgk6jC70jjkGp81lGOTvHRkLNs1/1z CGDImwMvUofc/wMVIN+a+jyEGa/14+rDAhZ7viZ/kRiVmBQqD9Twibm6M0rl6rm1IePUY5 fzmeuGORKSvAkV5k6YMjDxxo7J1ooEYUsbKPTTAtsNhFpFMcQ4AEAR3a1qcatA== 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 4WRkQx3wbMz12Bh; Sun, 21 Jul 2024 13:14:49 +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 46LDEnDL023068; Sun, 21 Jul 2024 13:14:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46LDEn51023065; Sun, 21 Jul 2024 13:14:49 GMT (envelope-from git) Date: Sun, 21 Jul 2024 13:14:49 GMT Message-Id: <202407211314.46LDEn51023065@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Vladimir Kondratyev Subject: git: 80aa295a5272 - main - LinuxKPI: Add page_to_virt function 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: wulf X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 80aa295a5272d01b7f21eff6719dcd45e14e8e09 Auto-Submitted: auto-generated The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=80aa295a5272d01b7f21eff6719dcd45e14e8e09 commit 80aa295a5272d01b7f21eff6719dcd45e14e8e09 Author: Vladimir Kondratyev AuthorDate: 2024-07-21 13:09:01 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-07-21 13:09:01 +0000 LinuxKPI: Add page_to_virt function Sponsored by: Serenity Cyber Security, LLC MFC after: 1 week Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D45843 --- sys/compat/linuxkpi/common/include/linux/page.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/compat/linuxkpi/common/include/linux/page.h b/sys/compat/linuxkpi/common/include/linux/page.h index aa5acac4f5fe..37ab593a64e9 100644 --- a/sys/compat/linuxkpi/common/include/linux/page.h +++ b/sys/compat/linuxkpi/common/include/linux/page.h @@ -72,6 +72,7 @@ pgprot2cachemode(pgprot_t prot) return (VM_MEMATTR_DEFAULT); } +#define page_to_virt(page) linux_page_address(page) #define virt_to_page(x) PHYS_TO_VM_PAGE(vtophys(x)) #define page_to_pfn(pp) (VM_PAGE_TO_PHYS(pp) >> PAGE_SHIFT) #define pfn_to_page(pfn) (PHYS_TO_VM_PAGE((pfn) << PAGE_SHIFT))